PolicyLevel.AddFullTrustAssembly Método

Definición

Agrega una StrongNameMembershipCondition a la lista de objetos StrongNameMembershipCondition que se utiliza para determinar si un ensamblado es miembro del grupo de ensamblados que no deben evaluarse.

Sobrecargas

AddFullTrustAssembly(StrongName)
Obsoletos.
Obsoletos.

Agrega un StrongNameMembershipCondition correspondiente al StrongName especificado a la lista de objetos StrongNameMembershipCondition que se utiliza para determinar si un ensamblado es miembro del grupo de ensamblados que no deben evaluarse.

AddFullTrustAssembly(StrongNameMembershipCondition)
Obsoletos.
Obsoletos.

Agrega el StrongNameMembershipCondition especificado a la lista de objetos StrongNameMembershipCondition utilizada para determinar si un ensamblado es miembro del grupo de ensamblados que no deben evaluarse.

AddFullTrustAssembly(StrongName)

Source:
PolicyLevel.cs
Source:
PolicyLevel.cs

Precaución

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.

Precaución

Esta API ya está en desuso.

Agrega un StrongNameMembershipCondition correspondiente al StrongName especificado a la lista de objetos StrongNameMembershipCondition que se utiliza para determinar si un ensamblado es miembro del grupo de ensamblados que no deben evaluarse.

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)

Parámetros

sn
StrongName

El StrongName utilizado para crear el StrongNameMembershipCondition que se agregará a la lista de objetos StrongNameMembershipCondition utilizada para determinar si un ensamblado es miembro del grupo de ensamblados que no deben evaluarse.

Atributos

Excepciones

El parámetro sn es null.

El StrongName especificado por el parámetro sn tiene ya plena confianza.

Comentarios

El AddFullTrustAssembly método no se admite en la versión 2.0 o posterior de .NET Framework porque la lista de ensamblados de plena confianza no se usa en esas versiones.

Consulte también

Se aplica a

AddFullTrustAssembly(StrongNameMembershipCondition)

Source:
PolicyLevel.cs
Source:
PolicyLevel.cs

Precaución

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.

Precaución

Esta API ya está en desuso.

Agrega el StrongNameMembershipCondition especificado a la lista de objetos StrongNameMembershipCondition utilizada para determinar si un ensamblado es miembro del grupo de ensamblados que no deben evaluarse.

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)

Parámetros

snMC
StrongNameMembershipCondition

Objeto StrongNameMembershipCondition que se agregará a la lista de objetos StrongNameMembershipCondition utilizada para determinar si un ensamblado es miembro del grupo de ensamblados que no deben evaluarse.

Atributos

Excepciones

El parámetro snMC es null.

El StrongNameMembershipCondition especificado por el parámetro snMC tiene ya plena confianza.

Comentarios

El AddFullTrustAssembly método no se admite en la versión 2.0 o posterior de .NET Framework porque la lista de ensamblados de plena confianza no se usa en esas versiones.

Consulte también

Se aplica a