Provides the Web site from which a code assembly originates as evidence for policy evaluation. This class cannot be inherited.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|Clone||Creates a new object that is a copy of the current instance. (Overrides EvidenceBase.Clone().)|
|Copy||Creates an equivalent copy of the object.|
|CreateFromUrl||Creates a new object from the specified URL.|
|CreateIdentityPermission||Creates an identity permission that corresponds to the current object.|
|Equals||Compares the current to the specified object for equivalence. (Overrides Object.Equals(Object).)|
|GetHashCode||Returns the hash code of the current website name. (Overrides Object.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|ToString||Returns a string representation of the current object. (Overrides Object.ToString().)|
The presence of evidence produces a SiteIdentityPermission in the grant set. If there is a Demand for SiteIdentityPermission, the SiteIdentityPermission that corresponds to the evidence will be compared with the demanded permission.
Site identity is defined for code from URLs with any protocol except FILE. A site is the string between the "//" after the protocol of a URL and the following "/", if present. For example, www.fourthcoffee.com is the site identity in the URL http://www.fourthcoffee.com/process/grind.htm. This excludes port numbers. If a given URL is http://www.fourthcoffee.com:8000/, the site is www.fourthcoffee.com, not www.fourthcoffee.com:8000.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.