SecurityManager.LoadPolicyLevelFromString(String, PolicyLevelType) 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.

Carrega um PolicyLevel da cadeia de caracteres especificada.

public:
 static System::Security::Policy::PolicyLevel ^ LoadPolicyLevelFromString(System::String ^ str, System::Security::PolicyLevelType type);
public static System.Security.Policy.PolicyLevel LoadPolicyLevelFromString(string str, System.Security.PolicyLevelType type);
[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 System.Security.Policy.PolicyLevel LoadPolicyLevelFromString(string str, System.Security.PolicyLevelType type);
static member LoadPolicyLevelFromString : string * System.Security.PolicyLevelType -> System.Security.Policy.PolicyLevel
[<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 LoadPolicyLevelFromString : string * System.Security.PolicyLevelType -> System.Security.Policy.PolicyLevel
Public Shared Function LoadPolicyLevelFromString (str As String, type As PolicyLevelType) As PolicyLevel

Parâmetros

str
String

A representação XML de um nível de política de segurança no mesmo formulário em que aparece em um arquivo de configuração.

type
PolicyLevelType

Um dos valores de enumeração que especifica o tipo do nível de política a ser carregado.

Retornos

O nível de política carregado.

Atributos

Exceções

O str parâmetro é null.

O str parâmetro não é válido.

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

Aplica-se a