Udostępnij przez


SecurityManager.SavePolicyLevel(PolicyLevel) Metoda

Definicja

Przestroga

Ten interfejs API jest już przestarzały.

Przestroga

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.

Zapisuje zmodyfikowany poziom zasad zabezpieczeń załadowany za pomocą polecenia 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

Obiekt poziomu zasad, który ma zostać zapisany.

Atrybuty

Wyjątki

Kod, który wywołuje tę metodę, nie ma ControlPolicyelementu .

Ta metoda używa zasad zabezpieczeń dostępu do kodu (CAS), które są przestarzałe w .NET Framework 4. Aby włączyć zasady cas pod kątem zgodności z wcześniejszymi wersjami .NET Framework, użyj starszego< elementuCasPolicy>.

Uwagi

Element PolicyLevel zostanie zapisany w tej samej lokalizacji, z której został załadowany.

Dotyczy