Domain Property

Cookie.Domain Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the domain of a Uniform Resource Identifier (URI) for which the cookie is valid.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)

'Declaration
Public Property Domain As String

Property Value

Type: System.String
The domain of a URI for which the cookie is valid. The default is an empty string ("").

The following illustration indicates the domain and path portion of a URI.

Domain and path portion of a URI

A server cannot indicate a domain other than its own. However, it can indicate more than one server in the domain. The default value is the host that this cookie has been received from.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft