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