Zone クラス

定義

注意事項

Code Access Security is not supported or honored by the runtime.

ポリシーを評価するための証拠として、コード アセンブリのセキュリティ ゾーンを提供します。 このクラスは継承できません。

public ref class Zone sealed : System::Security::Policy::EvidenceBase, System::Security::Policy::IIdentityPermissionFactory
public ref class Zone sealed : System::Security::Policy::IIdentityPermissionFactory
public sealed class Zone : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class Zone : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
public sealed class Zone : System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Zone : System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Zone : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
type Zone = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type Zone = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
[<System.Serializable>]
type Zone = class
    interface IIdentityPermissionFactory
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Zone = class
    interface IIdentityPermissionFactory
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Zone = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
Public NotInheritable Class Zone
Inherits EvidenceBase
Implements IIdentityPermissionFactory
Public NotInheritable Class Zone
Implements IIdentityPermissionFactory
継承
継承
Zone
属性
実装

注釈

注意事項

コード アクセス セキュリティ (CAS) は、.NET Framework と .NET のすべてのバージョンで非推奨になりました。 最近のバージョンの .NET では、CAS 関連の API が使われている場合、CAS の注釈は使われず、エラーが発生します。 開発者は、代わりの手段を見つけてセキュリティ タスクを実現する必要があります。

証拠が Zone 存在すると、 ZoneIdentityPermission 許可セットに が生成されます。 の ZoneIdentityPermissionZoneIdentityPermission がある場合、Demand証拠に対応する がZone要求されたアクセス許可と比較されます。

ゾーンは 列挙体によって SecurityZone 定義されます。

コンストラクター

Zone(SecurityZone)
古い.

コード アセンブリの発生元のゾーンを指定して、Zone クラスの新しいインスタンスを初期化します。

プロパティ

SecurityZone
古い.

コード アセンブリの発生元のゾーンを取得します。

メソッド

Clone()
古い.

現在のインスタンスのコピーである新しいオブジェクトを作成します。

Clone()
古い.

現在のインスタンスの完全なコピーである新しいオブジェクトを作成します。

(継承元 EvidenceBase)
Copy()
古い.

証拠オブジェクトの同等コピーを作成します。

CreateFromUrl(String)
古い.

指定した URL の新しいゾーンを作成します。

CreateIdentityPermission(Evidence)
古い.

Zone 証拠クラスの現在のインスタンスに対応する ID アクセス許可を作成します。

Equals(Object)
古い.

現在の Zone 証拠オブジェクトと指定したオブジェクトが等しいかどうかを比較します。

GetHashCode()
古い.

現在のゾーンのハッシュ コードを取得します。

GetType()
古い.

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()
古い.

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()
古い.

現在の Zone の文字列形式を返します。

適用対象