SecurityManager.SavePolicyLevel(PolicyLevel) メソッド

定義

注意事項

この 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.

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)

パラメーター

level
PolicyLevel

保存するポリシー レベル オブジェクト。

属性

例外

このメソッドを呼び出すコードには ControlPolicy がありません。

このメソッドは、コード アクセス セキュリティ (CAS) ポリシーを使用します。これは、.NET Framework 4 では廃止されています。 .NET Framework の旧バージョンとの互換性のために CAS ポリシーを有効にするには、<legacyCasPolicy> 要素を使用します。

注釈

PolicyLevel み込まれた場所と同じ場所に保存されます。

適用対象