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à

String

Nome di dominio del cookie.

Attributi

Esempio

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


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