Defines the web site from which code originates. For example, it is possible to ensure that callers are from a specific web site.
Object
CodeAccessPermission
SiteIdentityPermission
[Visual Basic] NotInheritable Public Class SiteIdentityPermission Inherits CodeAccessPermission [C#] public sealed class SiteIdentityPermission : CodeAccessPermission [C++] public __gc __sealed class SiteIdentityPermission : public CodeAccessPermission [JScript] public class SiteIdentityPermission extends CodeAccessPermission
Site identity is only defined for code from URLs with protocol HTTP, HTTPS, FTP- the site is the string between the '//' after the protocol and the following '/' if present, for example "site.microsoft.com" in the URL "http://site.microsoft.com/x.htm".
Sites may be matched exactly, or by wildcard '*' prefix at the dot delimiter, as follows.
www.microsoft.com
*.microsoft.com
*.k12.wa.us
Note: *.microsoft.com matches 'microsoft.com' (no prefix) as well as 'www.microsoft.com' etc. Without wildcard site name must be a precise match.
Namespace: System.Security.Permissions
Assembly: mscorlib.dll
SiteIdentityPermission Members | System.Security.Permissions Namespace