HostSecurityManager.DomainPolicy プロパティ

定義

注意事項

AppDomain policy levels are 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:
 virtual property System::Security::Policy::PolicyLevel ^ DomainPolicy { System::Security::Policy::PolicyLevel ^ get(); };
public virtual System.Security.Policy.PolicyLevel DomainPolicy { get; }
[System.Obsolete("AppDomain policy levels are 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 virtual System.Security.Policy.PolicyLevel DomainPolicy { get; }
member this.DomainPolicy : System.Security.Policy.PolicyLevel
[<System.Obsolete("AppDomain policy levels are obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
member this.DomainPolicy : System.Security.Policy.PolicyLevel
Public Overridable ReadOnly Property DomainPolicy As PolicyLevel

プロパティ値

現在のアプリケーション ドメインに対するセキュリティ ポリシー。 既定値は、null です。

属性

例外

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

注釈

このプロパティは、派生クラスでオーバーライドできます。 基本実装では、常に null を返します。

このプロパティは作成時に AppDomain 呼び出されます。 これにより、ホストは現在 AppDomainの のポリシーを提供できます。 ポリシー レベルは、次の要素で構成されます。

  • 1 つのルートツリーに編成されたコード グループのセット。

  • コード グループに属するコードに付与するアクセス許可を指定するためにコード グループによって参照される名前付きアクセス許可セットのセット。

  • 完全に信頼されたアセンブリの一覧。

重要

重要な実装情報については、クラスの HostSecurityManager 継承者へのメモを参照してください。

適用対象