SecurityManager.LoadPolicyLevelFromString(String, PolicyLevelType) Método

Definição

Atenção

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 a PolicyLevel da cadeia 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 na mesma forma em que aparece num ficheiro de configuração.

type
PolicyLevelType

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

Devoluções

O nível da política carregada.

Atributos

Exceções

O str parâmetro é null.

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

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

Aplica-se a