SiteIdentityPermission.Site Property


Gets or sets the current site.

 property System::String ^ Site { System::String ^ get(); void set(System::String ^ value); };
public string Site { get; set; }
member this.Site : string with get, set
Public Property Site As String

Property Value

The current site.


The site identity cannot be retrieved because it has an ambiguous identity.


Site identity is only defined for code from URLs with the protocols of HTTP, HTTPS, and FTP. A site is the string between the "//" after the protocol of a URL and the following "/", if present, for example, in the URL This excludes port numbers. If a given URL is, the site is, not

Sites can be matched exactly, or by a wildcard ("*") prefix at the dot delimiter. For example, the site name string * matches as well as Without a wildcard, the site name must be a precise match. The site name string * will match any site, but will not match code that has no site evidence.

Applies to