Dela via


AntiforgeryOptions.CookieDomain Property

Definition

Caution

This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Domain.

This property is obsolete and will be removed in a future version. The recommended alternative is on Cookie.

The domain set on the cookie. By default its null which results in the "domain" attribute not being set.

public:
 property System::String ^ CookieDomain { System::String ^ get(); void set(System::String ^ value); };
public string CookieDomain { get; set; }
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Domain.")]
public string CookieDomain { get; set; }
member this.CookieDomain : string with get, set
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Domain.")>]
member this.CookieDomain : string with get, set
Public Property CookieDomain As String

Property Value

Attributes

Applies to