共用方式為


PolicyLevel.AddFullTrustAssembly 方法

定義

StrongNameMembershipCondition 加入至用來決定組件是否屬於不應被評估的組件群組成員的 StrongNameMembershipCondition 物件清單。

多載

AddFullTrustAssembly(StrongName)
已淘汰.
已淘汰.

將和指定 StrongNameMembershipCondition 相對應的 StrongName 加入至用來決定組件是否屬於不應被評估的組件群組成員的 StrongNameMembershipCondition 物件清單。

AddFullTrustAssembly(StrongNameMembershipCondition)
已淘汰.
已淘汰.

將指定的 StrongNameMembershipCondition 加入至用來決定組件是否屬於不應被評估的組件群組成員的 StrongNameMembershipCondition 物件清單。

AddFullTrustAssembly(StrongName)

來源:
PolicyLevel.cs
來源:
PolicyLevel.cs
來源:
PolicyLevel.cs
來源:
PolicyLevel.cs

警告

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

sn 參數所指定的 StrongName 能夠完全受到信任。

備註

AddFullTrustAssembly.NET Framework 2.0 版或更新版本不支援方法,因為這些版本不會使用完整信任元件清單。

另請參閱

適用於

AddFullTrustAssembly(StrongNameMembershipCondition)

來源:
PolicyLevel.cs
來源:
PolicyLevel.cs
來源:
PolicyLevel.cs
來源:
PolicyLevel.cs

警告

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)

參數

snMC
StrongNameMembershipCondition

要加入至用來決定組件是否屬於不應被評估的組件群組成員其 StrongNameMembershipCondition 物件清單的 StrongNameMembershipCondition

屬性

例外狀況

snMC 參數為 null

snMC 參數所指定的 StrongNameMembershipCondition 能夠完全受到信任。

備註

AddFullTrustAssembly.NET Framework 2.0 版或更新版本不支援方法,因為這些版本不會使用完整信任元件清單。

另請參閱

適用於