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)

屬性值

屬性

適用於