SecurityManager.SavePolicy 메서드

정의

주의

이 API는 이제 사용되지 않습니다.

주의

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 SavePolicy();
[System.Obsolete]
public static void SavePolicy ();
public static void SavePolicy ();
[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 SavePolicy ();
[<System.Obsolete>]
static member SavePolicy : unit -> unit
static member SavePolicy : unit -> 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 SavePolicy : unit -> unit
Public Shared Sub SavePolicy ()
특성

예외

이 메서드는 .NET Framework 4에서 사용되지 않는 CAS(코드 액세스 보안) 정책을 사용합니다. 이전 버전의 .NET Framework와의 호환성에 대한 CAS 정책을 사용하도록 설정하려면 <legacyCasPolicy> 요소를 사용합니다.

이 메서드를 호출하는 코드에 ControlPolicy가 없습니다.

설명

이 메서드는 보안 정책의 구성을 나타내는 , PolicyLevel및 기타 클래스에 의해 PolicyHierarchy노출되는 정책을 저장합니다. 이 메서드를 호출 하지 않으면 정책 개체에 대 한 변경 내용이 저장 되지 않습니다 및 후속 애플리케이션 실행에 영향을 주지 않습니다.

적용 대상