System.Security.Policy.Zone Class

Provides the security zone of a code assembly as evidence for policy evaluation. This class cannot be inherited.

See Also: Zone Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Zone : EvidenceBase, IBuiltInEvidence, IIdentityPermissionFactory

Remarks

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

Zones are defined by the System.Security.SecurityZone enumeration.

Requirements

Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0