12 [OptionalField(VersionAdded = 2)]
17 private static readonly
string[] s_names =
new string[6]
31 [SecuritySafeCritical]
36 m_zone = _CreateFromUrl(m_url);
47 if (zone < SecurityZone.NoZone || zone >
SecurityZone.Untrusted)
60 private Zone(
string url)
81 [SuppressUnmanagedCodeSecurity]
82 private static extern SecurityZone _CreateFromUrl(
string url);
97 public override bool Equals(
object o)
118 return new Zone(
this);
140 return securityElement;
150 internal object Normalize()
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
SecurityZone
Defines the integer values corresponding to security zones used by security policy.
Provides the security zone of a code assembly as evidence for policy evaluation. This class cannot be...
override string ToString()
Returns a string representation of the current T:System.Security.Policy.Zone.
object Copy()
Creates an equivalent copy of the evidence object.
IPermission CreateIdentityPermission(Evidence evidence)
Creates an identity permission that corresponds to the current instance of the T:System....
Zone(SecurityZone zone)
Initializes a new instance of the T:System.Security.Policy.Zone class with the zone from which a code...
Provides a base class from which all objects to be used as evidence must derive.
Defines the method that creates a new identity permission.
void AddChild(SecurityElement child)
Adds a child element to the XML element.
static Zone CreateFromUrl(string url)
Creates a new zone with the specified URL.
Provides information about, and means to manipulate, the current environment and platform....
Represents the XML object model for encoding security objects. This class cannot be inherited.
CharSet
Dictates which character set marshaled strings should use.
override bool Equals(object o)
Compares the current T:System.Security.Policy.Zone evidence object to the specified object for equiva...
override EvidenceBase Clone()
Creates a new object that is a copy of the current instance.
Defines methods implemented by permission types.
The exception that is thrown when one of the arguments provided to a method is not valid.
Defines the identity permission for the zone from which the code originates. This class cannot be inh...
Defines the set of information that constitutes input to security policy decisions....
void AddAttribute(string name, string value)
Adds a name/value attribute to an XML element.
Specifies that the class can be serialized.
SecurityZone SecurityZone
Gets the zone from which the code assembly originates.
override int GetHashCode()
Gets the hash code of the current zone.
override string ToString()
Produces a string representation of an XML element and its constituent attributes,...