SecurityManager.SavePolicyLevel(PolicyLevel) 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.

Uloží upravenou úroveň zásad zabezpečení načtenou s LoadPolicyLevelFromFile(String, PolicyLevelType).

public:
 static void SavePolicyLevel(System::Security::Policy::PolicyLevel ^ level);
[System.Obsolete]
public static void SavePolicyLevel (System.Security.Policy.PolicyLevel level);
public static void SavePolicyLevel (System.Security.Policy.PolicyLevel level);
[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 void SavePolicyLevel (System.Security.Policy.PolicyLevel level);
[<System.Obsolete>]
static member SavePolicyLevel : System.Security.Policy.PolicyLevel -> unit
static member SavePolicyLevel : System.Security.Policy.PolicyLevel -> unit
[<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 SavePolicyLevel : System.Security.Policy.PolicyLevel -> unit
Public Shared Sub SavePolicyLevel (level As PolicyLevel)

Parametry

level
PolicyLevel

Objekt na úrovni zásad, který se má uložit.

Atributy

Výjimky

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

Tato metoda používá zásady zabezpečení přístupu kódu (CAS), které jsou zastaralé v .NET Framework 4. Pokud chcete povolit zásady CAS pro kompatibilitu se staršími verzemi .NET Framework, použijte <element legacyCasPolicy>.

Poznámky

Uloží PolicyLevel se do stejného umístění, ze kterého se načetl.

Platí pro