Zone Zone Zone Zone Class

定义

提供代码程序集的安全区域作为策略评估的证据。Provides the security zone of a code assembly as evidence for policy evaluation. 此类不能被继承。This class cannot be inherited.

public ref class Zone sealed : System::Security::Policy::EvidenceBase, System::Security::Policy::IIdentityPermissionFactory
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class Zone : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
type Zone = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
Public NotInheritable Class Zone
Inherits EvidenceBase
Implements IIdentityPermissionFactory
继承
ZoneZoneZoneZone
属性
实现

注解

Zone证据的存在会在授予ZoneIdentityPermission集中生成一个。The presence of Zone evidence produces a ZoneIdentityPermission in the grant set. Demand如果存在ZoneIdentityPermission, Zone则与证据对应的将与所需的权限进行比较。 ZoneIdentityPermissionIf there is a Demand for ZoneIdentityPermission, the ZoneIdentityPermission that corresponds to the Zone evidence will be compared with the demanded permission.

区域由SecurityZone枚举定义。Zones are defined by the SecurityZone enumeration.

构造函数

Zone(SecurityZone) Zone(SecurityZone) Zone(SecurityZone) Zone(SecurityZone)

用从其中产生代码程序集的区域初始化 Zone 类的新实例。Initializes a new instance of the Zone class with the zone from which a code assembly originates.

属性

SecurityZone SecurityZone SecurityZone SecurityZone

获取从其中产生代码程序集的区域。Gets the zone from which the code assembly originates.

方法

Clone() Clone() Clone() Clone()

创建作为当前实例副本的新对象。Creates a new object that is a copy of the current instance.

Copy() Copy() Copy() Copy()

创建证据对象的等效副本。Creates an equivalent copy of the evidence object.

CreateFromUrl(String) CreateFromUrl(String) CreateFromUrl(String) CreateFromUrl(String)

创建具有指定 URL 的新区域。Creates a new zone with the specified URL.

CreateIdentityPermission(Evidence) CreateIdentityPermission(Evidence) CreateIdentityPermission(Evidence) CreateIdentityPermission(Evidence)

创建与 Zone 证据类的当前实例对应的标识权限。Creates an identity permission that corresponds to the current instance of the Zone evidence class.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

将当前 Zone 证据对象与指定对象比较以判断它们是否等同。Compares the current Zone evidence object to the specified object for equivalence.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

获取当前区域的哈希代码。Gets the hash code of the current zone.

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回当前 Zone 的字符串表示形式。Returns a string representation of the current Zone.

适用于