SecurityManager.LoadPolicyLevelFromString(String, PolicyLevelType) Metoda

Definice

Upozornění

Toto rozhraní API je teď zastaralé.

Upozorně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.

Načte PolicyLevel ze zadaného řetězce .

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

Parametry

str
String

Reprezentace XML úrovně zásad zabezpečení ve stejné podobě, ve které se zobrazuje v konfiguračním souboru.

type
PolicyLevelType

Jedna z hodnot výčtu, která určuje typ úrovně zásad, která má být načtena.

Návraty

Načtená úroveň zásad.

Atributy

Výjimky

Parametr str je null.

Parametr str není platný.

Kód, který volá tuto metodu, nemá ControlPolicy.

Platí pro