Partilhar via


PolicyLevel.RemoveFullTrustAssembly Método

Definição

Remove um assembly da lista de assemblies que o nível de política usa para avaliar a política.

Sobrecargas

RemoveFullTrustAssembly(StrongName)
Obsoleto.
Obsoleto.

Remove um assembly com o StrongName especificado da lista de assemblies que o nível de política usa para avaliar a política.

RemoveFullTrustAssembly(StrongNameMembershipCondition)
Obsoleto.
Obsoleto.

Remove um assembly com o StrongNameMembershipCondition especificado da lista de assemblies que o nível de política usa para avaliar a política.

RemoveFullTrustAssembly(StrongName)

Origem:
PolicyLevel.cs
Origem:
PolicyLevel.cs
Origem:
PolicyLevel.cs
Origem:
PolicyLevel.cs

Cuidado

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.

Cuidado

Essa API foi preterida.

Remove um assembly com o StrongName especificado da lista de assemblies que o nível de política usa para avaliar a política.

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)

Parâmetros

sn
StrongName

O StrongName do assembly a ser removido da lista de assemblies usados para avaliar a política.

Atributos

Exceções

O parâmetro sn é null.

O assembly com o StrongName especificado pelo parâmetro sn não tem a confiança total.

Comentários

Não RemoveFullTrustAssembly há suporte para o método na versão 2.0 ou posterior do .NET Framework porque a lista de assemblies de confiança total não é usada nessas versões.

Aplica-se a

RemoveFullTrustAssembly(StrongNameMembershipCondition)

Origem:
PolicyLevel.cs
Origem:
PolicyLevel.cs
Origem:
PolicyLevel.cs
Origem:
PolicyLevel.cs

Cuidado

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.

Cuidado

Essa API foi preterida.

Remove um assembly com o StrongNameMembershipCondition especificado da lista de assemblies que o nível de política usa para avaliar a política.

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)

Parâmetros

snMC
StrongNameMembershipCondition

O StrongNameMembershipCondition do assembly a ser removido da lista de assemblies usados para avaliar a política.

Atributos

Exceções

O parâmetro snMC é null.

O StrongNameMembershipCondition especificado pelo parâmetro snMC não tem a confiança total.

Comentários

Não RemoveFullTrustAssembly há suporte para o método na versão 2.0 ou posterior do .NET Framework porque a lista de assemblies de confiança total não é usada nessas versões.

Aplica-se a