共用方式為


PolicyLevel.RemoveFullTrustAssembly 方法

定義

從原則層級用來評估原則的組件清單中移除組件。

多載

RemoveFullTrustAssembly(StrongName)
已淘汰.
已淘汰.

從原則層級用來評估原則的組件清單中移除指定的 StrongName 組件。

RemoveFullTrustAssembly(StrongNameMembershipCondition)
已淘汰.
已淘汰.

從原則層級用來評估原則的組件清單中移除指定的 StrongNameMembershipCondition 組件。

RemoveFullTrustAssembly(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 現已淘汰。

從原則層級用來評估原則的組件清單中移除指定的 StrongName 組件。

public:
 void RemoveFullTrustAssembly(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 RemoveFullTrustAssembly (System.Security.Policy.StrongName sn);
public void RemoveFullTrustAssembly (System.Security.Policy.StrongName sn);
[System.Obsolete]
public void RemoveFullTrustAssembly (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.RemoveFullTrustAssembly : System.Security.Policy.StrongName -> unit
member this.RemoveFullTrustAssembly : System.Security.Policy.StrongName -> unit
[<System.Obsolete>]
member this.RemoveFullTrustAssembly : System.Security.Policy.StrongName -> unit
Public Sub RemoveFullTrustAssembly (sn As StrongName)

參數

sn
StrongName

要從用來評估原則的組件清單中移除的組件 StrongName

屬性

例外狀況

sn 參數為 null

sn 參數指定具有 StrongName 的組件並未受完全信任。

備註

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

適用於

RemoveFullTrustAssembly(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 組件。

public:
 void RemoveFullTrustAssembly(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 RemoveFullTrustAssembly (System.Security.Policy.StrongNameMembershipCondition snMC);
public void RemoveFullTrustAssembly (System.Security.Policy.StrongNameMembershipCondition snMC);
[System.Obsolete]
public void RemoveFullTrustAssembly (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.RemoveFullTrustAssembly : System.Security.Policy.StrongNameMembershipCondition -> unit
member this.RemoveFullTrustAssembly : System.Security.Policy.StrongNameMembershipCondition -> unit
[<System.Obsolete>]
member this.RemoveFullTrustAssembly : System.Security.Policy.StrongNameMembershipCondition -> unit
Public Sub RemoveFullTrustAssembly (snMC As StrongNameMembershipCondition)

參數

snMC
StrongNameMembershipCondition

要從用來評估原則的組件清單中移除的組件 StrongNameMembershipCondition

屬性

例外狀況

snMC 參數為 null

snMC 參數指定的 StrongNameMembershipCondition 並未受完全信任。

備註

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

適用於