SecurityManager.LoadPolicyLevelFromString(String, PolicyLevelType) Metódus

Definíció

Figyelemfelhívás

Ez az API már elavult.

Figyelemfelhívás

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.

Betölti a megadott sztringet PolicyLevel .

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

Paraméterek

str
String

Egy biztonsági házirend-szint XML-reprezentációja ugyanabban az formában, amelyben egy konfigurációs fájlban jelenik meg.

type
PolicyLevelType

A betöltendő szabályzatszint típusát meghatározó enumerálási értékek egyike.

Válaszok

A betöltött szabályzat szintje.

Attribútumok

Kivételek

A str paraméter a következő null: .

A str paraméter érvénytelen.

A metódust meghívó kód nem rendelkezik ControlPolicy.

A következőre érvényes: