次の方法で共有


PolicyLevel.CreateAppDomainLevel メソッド

アプリケーション ドメイン ポリシー レベルで使用する新しいポリシー レベルを作成します。

Public Shared Function CreateAppDomainLevel() As PolicyLevel
[C#]
public static PolicyLevel CreateAppDomainLevel();
[C++]
public: static PolicyLevel* CreateAppDomainLevel();
[JScript]
public static function CreateAppDomainLevel() : PolicyLevel;

戻り値

新しく作成した PolicyLevel

解説

このメソッドは、 Label "AppDomain" を使用して、新しい PolicyLevel を作成します。新しい PolicyLevel は、初期状態では、既定のコンピュータ ポリシーと同じ NamedPermissionSet オブジェクトを格納し、すべてのコードに FullTrust を与える単一のルート コード グループを保持します。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

PolicyLevel クラス | PolicyLevel メンバ | System.Security.Policy 名前空間 | AppDomain.SetAppDomainPolicy