SiteIdentityPermission.Site Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the current site.
public:
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.
Exceptions
The site identity cannot be retrieved because it has an ambiguous identity.
Remarks
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, www.fourthcoffee.com
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
.
Sites can be matched exactly, or by a wildcard ("*") prefix at the dot delimiter. For example, the site name string *.fourthcoffee.com
matches fourthcoffee.com
as well as www.fourthcoffee.com
. 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.