語言

CookieAuthenticationOptions.CookiePath 屬性

定義

警告

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

此屬性已過時,未來版本將被移除。 推薦的替代方案是 <seealso cref=“P:Microsoft。AspNetCore.Http.CookieBuilder.Path“></seealso> on Cookie。

決定建立 Cookie 的路徑。 預設值為「/」以達到最高瀏覽器相容性。

public:
 property System::String ^ CookiePath { System::String ^ get(); void set(System::String ^ value); };
[System.Obsolete("This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Path.")]
public string CookiePath { 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 : string with get, set
Public Property CookiePath As String

屬性值

屬性

適用於