AntiforgeryOptions.CookiePath Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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