SecurityManager.SavePolicyLevel(PolicyLevel) Método

Definição

Cuidado

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.

Salva um nível de política de segurança modificado carregado com LoadPolicyLevelFromFile(String, PolicyLevelType).

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);
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

O objeto de nível de política a ser salvo.

Atributos

Exceções

O código que chama esse método não tem ControlPolicy.

Esse método usa a política cas (segurança de acesso de código), que é obsoleta no .NET Framework 4. Para habilitar a política CAS para compatibilidade com versões anteriores do .NET Framework, use o elemento <legacyCasPolicy>.

Comentários

O PolicyLevel será salvo no mesmo local do qual ele carregou.

Aplica-se a