Freigeben über


HttpCookiesSection.Domain Eigenschaft

Definition

Dient zum Abrufen oder Festlegen des Cookie-Domänennamens.

Diese API unterstützt die Produktinfrastruktur und ist nicht für die direkte Verwendung aus Ihrem Code gedacht.

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

Eigenschaftswert

Der Cookie-Domänenname.

Attribute

Beispiele

Das folgende Codebeispiel zeigt, wie die Domain Eigenschaft verwendet wird.


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

Gilt für: