Share via


AntiforgeryOptions.CookiePath Property

Definition

Caution

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

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

The path set on the cookie. If set to null, the "path" attribute on the cookie is set to the current request's PathBase value. If the value of PathBase is null or empty, then the "path" attribute is set to the value of Path.

public:
 property Nullable<Microsoft::AspNetCore::Http::PathString> CookiePath { Nullable<Microsoft::AspNetCore::Http::PathString> get(); void set(Nullable<Microsoft::AspNetCore::Http::PathString> value); };
public Microsoft.AspNetCore.Http.PathString? CookiePath { get; set; }
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Path.")]
public Microsoft.AspNetCore.Http.PathString? CookiePath { get; set; }
member this.CookiePath : Nullable<Microsoft.AspNetCore.Http.PathString> with get, set
[<System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Path.")>]
member this.CookiePath : Nullable<Microsoft.AspNetCore.Http.PathString> with get, set
Public Property CookiePath As Nullable(Of PathString)

Property Value

Attributes

Applies to