Freigeben über


SecurityManager.LoadPolicyLevelFromString(String, PolicyLevelType) Methode

Definition

Achtung

Diese API ist nun veraltet.

Achtung

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.

Lädt PolicyLevel aus der angegebenen Zeichenfolge.

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

Parameter

str
String

Die XML-Darstellung einer Sicherheitsrichtlinienebene in derselben Form, in der diese in einer Konfigurationsdatei angezeigt wird.

type
PolicyLevelType

Einer der Enumerationswerte, der den Typ der zu ladenden Richtlinienebene angibt.

Gibt zurück

Die geladene Richtlinienebene.

Attribute

Ausnahmen

Der str-Parameter ist null.

Der str-Parameter ist ungültig.

Der Code, der diese Methode aufruft, hat keine ControlPolicy.

Gilt für: