Compartir a través de


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

Carga un objeto PolicyLevel desde la cadena especificada.

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

Representación en XML de un nivel de directiva de seguridad de la misma forma en la que aparece en el archivo de configuración.

type
PolicyLevelType

Uno de los valores de enumeración que especifica el tipo del nivel de directiva que se va a cargar.

Devoluciones

Nivel de directiva de carga.

Atributos

Excepciones

El parámetro str es null.

El parámetro str no es válido.

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

Se aplica a