Partilhar via


HttpCookiesSection.Domain Propriedade

Definição

Obtém ou define o nome de domínio do cookie.

Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código.

public:
 property System::String ^ Domain { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("domain", DefaultValue="")]
public string Domain { get; set; }
[<System.Configuration.ConfigurationProperty("domain", DefaultValue="")>]
member this.Domain : string with get, set
Public Property Domain As String

Valor da propriedade

String

O nome do domínio do cookie.

Atributos

Exemplos

O exemplo de código a seguir mostra como usar a Domain propriedade.


// Get the current Domain.
string domainValue = 
    httpCookiesSection.Domain;

// Set the Domain.
httpCookiesSection.Domain = 
    string.Empty;

' Get the current Domain.
Dim domainValue As String = _
httpCookiesSection.Domain
' Set the Domain property.
httpCookiesSection.Domain = _
String.Empty

Aplica-se a