PolicyLevel.AddFullTrustAssembly 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 StrongNameMembershipCondition 添加到 StrongNameMembershipCondition 对象列表中,这些对象用于确定程序集是否为不应评估的程序集组的成员。
重载
AddFullTrustAssembly(StrongName) |
已过时.
已过时.
将与指定的 StrongNameMembershipCondition 对应的 StrongName 添加到 StrongNameMembershipCondition 对象列表中,这些对象用于确定程序集是否为不应评估的程序集组的成员。 |
AddFullTrustAssembly(StrongNameMembershipCondition) |
已过时.
已过时.
将指定的 StrongNameMembershipCondition 添加到 StrongNameMembershipCondition 对象(这些对象用于确定程序集是否为不应评估的程序集组的成员)的列表中。 |
AddFullTrustAssembly(StrongName)
- 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 对应的 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)
- 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 添加到 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
。
snMC
参数指定的 StrongNameMembershipCondition 已获得完全信任。
注解
AddFullTrustAssembly.NET Framework版本 2.0 或更高版本不支持 方法,因为这些版本中未使用完全信任程序集的列表。