Share via


CookieHeaderValue.Domain Property

Gets or sets the domain to associate the cookie with.

Namespace:  System.Net.Http.Headers
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Syntax

'Declaration
Public Property Domain As String 
    Get 
    Set
'Usage
Dim instance As CookieHeaderValue 
Dim value As String 

value = instance.Domain

instance.Domain = value
public string Domain { get; set; }
public:
property String^ Domain {
    String^ get ();
    void set (String^ value);
}
member Domain : string with get, set
function get Domain () : String 
function set Domain (value : String)

Property Value

Type: System.String
The name of the domain to associate the cookie with.

See Also

Reference

CookieHeaderValue Class

System.Net.Http.Headers Namespace