PolicyLevel.RemoveFullTrustAssembly 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将程序集从该策略级别用来评估策略的程序集列表中移除。
重载
RemoveFullTrustAssembly(StrongName) |
已过时.
已过时.
将具有指定 StrongName 的程序集从策略级别用来评估策略的程序集列表中移除。 |
RemoveFullTrustAssembly(StrongNameMembershipCondition) |
已过时.
已过时.
将具有指定 StrongNameMembershipCondition 的程序集从策略级别用来评估策略的程序集列表中移除。 |
RemoveFullTrustAssembly(StrongName)
- Source:
- PolicyLevel.cs
- Source:
- PolicyLevel.cs
- Source:
- PolicyLevel.cs
- Source:
- 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)
- Source:
- PolicyLevel.cs
- Source:
- PolicyLevel.cs
- Source:
- PolicyLevel.cs
- Source:
- 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)
参数
要从用于评估策略的程序集列表中移除的程序集的 StrongNameMembershipCondition。
- 属性
例外
snMC
参数为 null
。
snMC
参数所指定的 StrongNameMembershipCondition 未获得完全信任。
注解
RemoveFullTrustAssembly.NET Framework版本 2.0 或更高版本不支持 方法,因为这些版本未使用完全信任程序集的列表。