PolicyLevel.AddFullTrustAssembly 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 a StrongNameMembershipCondition 加入 StrongNameMembershipCondition 用於判斷組裝是否屬於不應評估的組裝群成員的物件清單。
多載
| 名稱 | Description |
|---|---|
| AddFullTrustAssembly(StrongName) |
已淘汰.
已淘汰.
將 與 StrongNameMembershipCondition 指定的 StrongName 物件相符,加入 StrongNameMembershipCondition 用以判斷組裝是否屬於不應評估的組裝群成員的物件清單中。 |
| AddFullTrustAssembly(StrongNameMembershipCondition) |
已淘汰.
已淘汰.
將指定的 StrongNameMembershipCondition 物件加入 StrongNameMembershipCondition 用以判斷組裝是否屬於不應評估的組裝群成員的物件清單中。 |
AddFullTrustAssembly(StrongName)
警告
Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted.
警告
此 API 現已淘汰。
將 與 StrongNameMembershipCondition 指定的 StrongName 物件相符,加入 StrongNameMembershipCondition 用以判斷組裝是否屬於不應評估的組裝群成員的物件清單中。
public:
void AddFullTrustAssembly(System::Security::Policy::StrongName ^ sn);
[System.Obsolete("Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted.")]
public void AddFullTrustAssembly(System.Security.Policy.StrongName sn);
public void AddFullTrustAssembly(System.Security.Policy.StrongName sn);
[System.Obsolete]
public void AddFullTrustAssembly(System.Security.Policy.StrongName sn);
[<System.Obsolete("Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted.")>]
member this.AddFullTrustAssembly : System.Security.Policy.StrongName -> unit
member this.AddFullTrustAssembly : System.Security.Policy.StrongName -> unit
[<System.Obsolete>]
member this.AddFullTrustAssembly : System.Security.Policy.StrongName -> unit
Public Sub AddFullTrustAssembly (sn As StrongName)
參數
- sn
- StrongName
用於 StrongName 建立 StrongNameMembershipCondition 加入物件清單 StrongNameMembershipCondition ,用以判斷一個組件是否屬於不應評估的組件群組。
- 屬性
例外狀況
參數 sn 為 null。
StrongName參數sn所指定的 已經擁有完全信任。
備註
AddFullTrustAssembly 方法在 .NET 2.0 版或更新版本中不支援,因為這些版本未使用完整信任組件清單。
另請參閱
適用於
AddFullTrustAssembly(StrongNameMembershipCondition)
警告
Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted.
警告
此 API 現已淘汰。
將指定的 StrongNameMembershipCondition 物件加入 StrongNameMembershipCondition 用以判斷組裝是否屬於不應評估的組裝群成員的物件清單中。
public:
void AddFullTrustAssembly(System::Security::Policy::StrongNameMembershipCondition ^ snMC);
[System.Obsolete("Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted.")]
public void AddFullTrustAssembly(System.Security.Policy.StrongNameMembershipCondition snMC);
public void AddFullTrustAssembly(System.Security.Policy.StrongNameMembershipCondition snMC);
[System.Obsolete]
public void AddFullTrustAssembly(System.Security.Policy.StrongNameMembershipCondition snMC);
[<System.Obsolete("Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted.")>]
member this.AddFullTrustAssembly : System.Security.Policy.StrongNameMembershipCondition -> unit
member this.AddFullTrustAssembly : System.Security.Policy.StrongNameMembershipCondition -> unit
[<System.Obsolete>]
member this.AddFullTrustAssembly : System.Security.Policy.StrongNameMembershipCondition -> unit
Public Sub AddFullTrustAssembly (snMC As StrongNameMembershipCondition)
參數
StrongNameMembershipCondition加入StrongNameMembershipCondition用於判斷組裝是否屬於不應評估的組裝群成員的物件清單。
- 屬性
例外狀況
參數 snMC 為 null。
StrongNameMembershipCondition參數snMC所指定的 已經擁有完全信任。
備註
AddFullTrustAssembly 方法在 .NET 2.0 版或更新版本中不支援,因為這些版本未使用完整信任組件清單。