Zone Zone Zone Zone Class

Definition

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)]
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
Inheritance
ZoneZoneZoneZone
Attributes
Implements

Remarks

The presence of Zone evidence produces a ZoneIdentityPermission in the grant set. If there is a Demand for ZoneIdentityPermission, the ZoneIdentityPermission that corresponds to the Zone evidence will be compared with the demanded permission.

Zones are defined by the SecurityZone enumeration.

Constructors

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

Initializes a new instance of the Zone class with the zone from which a code assembly originates.

Properties

SecurityZone SecurityZone SecurityZone SecurityZone

Gets the zone from which the code assembly originates.

Methods

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)

Creates a new zone with the specified URL.

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

Creates an identity permission that corresponds to the current instance of the Zone evidence class.

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

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()

Gets the Type of the current instance.

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

Creates a shallow copy of the current Object.

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

Returns a string representation of the current Zone.

Applies to