HttpCookiesSection.Domain Egenskap

Definition

Hämtar eller anger cookiedomännamnet.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

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

Egenskapsvärde

Cookiedomännamnet.

Attribut

Exempel

Följande kodexempel visar hur du använder egenskapen 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

Gäller för