Condividi tramite


HttpCookiesSection.Domain Proprietà

Definizione

Ottiene o imposta il nome di dominio del cookie.

Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice.

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

Valore della proprietà

Nome di dominio del cookie.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato come utilizzare la Domain proprietà .


// 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

Si applica a