SiteIdentityPermission.Site Propriedade
Definição
Obtém ou define o site atual.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
Valor da propriedade
O site atual.The current site.
Exceções
A identidade do site não pode ser recuperada porque ele tem uma identidade ambígua.The site identity cannot be retrieved because it has an ambiguous identity.
Comentários
A identidade do site só é definida para o código de URLs com protocolos de HTTP, HTTPS e FTP.Site identity is only defined for code from URLs with the protocols of HTTP, HTTPS, and FTP. Um site é a cadeia de caracteres entre "//" após o protocolo de uma URL e o seguinte "/", se presente, por exemplo, www.fourthcoffee.com na URL http://www.fourthcoffee.com/process/grind.htm/ .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/. Isso exclui os números de porta.This excludes port numbers. Se uma determinada URL for http://www.fourthcoffee.com:8000/ , o site será www.fourthcoffee.com , não www.fourthcoffee.com:8000 .If a given URL is http://www.fourthcoffee.com:8000/, the site is www.fourthcoffee.com, not www.fourthcoffee.com:8000.
Os sites podem corresponder exatamente ou por um prefixo (" * ") curinga no delimitador de ponto.Sites can be matched exactly, or by a wildcard ("*") prefix at the dot delimiter. Por exemplo, a cadeia de caracteres nome do site *.fourthcoffee.com corresponde, fourthcoffee.com bem como www.fourthcoffee.com .For example, the site name string *.fourthcoffee.com matches fourthcoffee.com as well as www.fourthcoffee.com. Sem um curinga, o nome do site deve ser uma correspondência precisa.Without a wildcard, the site name must be a precise match. A cadeia de caracteres de nome de site * corresponderá a qualquer site, mas não corresponderá a código que não tenha evidências de site.The site name string * will match any site, but will not match code that has no site evidence.