AntiforgeryOptions.CookiePath 属性

定义

注意

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

此属性已过时,将在将来的版本中删除。 建议的替代方法是在 上 Cookie

在 Cookie 上设置的路径。 如果设置为 null,则 Cookie 上的“path”属性设置为当前请求 PathBase 的值。 如果 的PathBasenull值为或空,则“path”属性设置为 的值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)

属性值

属性

适用于