Share via


SecurityManager.SavePolicyLevel(PolicyLevel) Método

Definición

Precaución

Esta API ya está en desuso.

Precaución

This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.

Guarda un nivel de directiva de seguridad modificado cargado con LoadPolicyLevelFromFile(String, PolicyLevelType).

public:
 static void SavePolicyLevel(System::Security::Policy::PolicyLevel ^ level);
[System.Obsolete]
public static void SavePolicyLevel (System.Security.Policy.PolicyLevel level);
public static void SavePolicyLevel (System.Security.Policy.PolicyLevel level);
[System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public static void SavePolicyLevel (System.Security.Policy.PolicyLevel level);
[<System.Obsolete>]
static member SavePolicyLevel : System.Security.Policy.PolicyLevel -> unit
static member SavePolicyLevel : System.Security.Policy.PolicyLevel -> unit
[<System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
static member SavePolicyLevel : System.Security.Policy.PolicyLevel -> unit
Public Shared Sub SavePolicyLevel (level As PolicyLevel)

Parámetros

level
PolicyLevel

El objeto de nivel de directiva que se va a guardar.

Atributos

Excepciones

El código que llama a este método no tiene ControlPolicy.

Este método usa la directiva de seguridad de acceso al código (CAS), que está obsoleta en .NET Framework 4. Para habilitar la directiva CAS para compatibilidad con versiones anteriores de .NET Framework, use el elemento <legacyCasPolicy>.

Comentarios

PolicyLevel Se guardará en la misma ubicación desde la que se cargó.

Se aplica a