This documentation is archived and is not being maintained.

SiteIdentityPermissionAttribute.Site Property

Gets or sets the site name of the calling code.

[Visual Basic]
Public Property Site As String
public string Site {get; set;}
public: __property String* get_Site();
public: __property void set_Site(String*);
public function get Site() : String;
public function set Site(String);

Property Value

The site name to compare against the site name specified by the security provider.


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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SiteIdentityPermissionAttribute Class | SiteIdentityPermissionAttribute Members | System.Security.Permissions Namespace