Site Site Site Site Class
Provides the Web site from which a code assembly originates as evidence for policy evaluation. This class cannot be inherited.
public ref class Site sealed : System::Security::Policy::EvidenceBase, System::Security::Policy::IIdentityPermissionFactory
[System.Runtime.InteropServices.ComVisible(true)] [System.Serializable] public sealed class Site : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
type Site = class inherit EvidenceBase interface IIdentityPermissionFactory
Public NotInheritable Class Site Inherits EvidenceBase Implements IIdentityPermissionFactory
The presence of Site evidence produces a SiteIdentityPermission in the grant set. If there is a Demand for SiteIdentityPermission, the SiteIdentityPermission that corresponds to the Site 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
|Site(String) Site(String) Site(String) Site(String)||
Initializes a new instance of the Site class with the website from which a code assembly originates.
|Name Name Name Name||
Gets the website from which the code assembly originates.