CookieHandlerElement.Domain Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the domain value for cookies written by the handler.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

[ConfigurationPropertyAttribute("domain", IsRequired = false)]
public string Domain { get; set; }

Property Value

Type: System.String

The domain value. The default is an empty string.

Represents the domain attribute of the <cookieHandler> element.

.NET Framework
Available since 4.5
Return to top