共用方式為


CookieAuthenticationOptions.CookieName 屬性

定義

警告

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

警告

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

這個屬性已過時,未來版本將會移除。 建議的替代做法是在 上 Cookie

判斷用來持續識別的 cookie 名稱。 預設值為 「。AspNetCore.Cookies」。 如果您變更 AuthenticationScheme 的名稱,則應該變更此值,特別是當您的系統多次使用 Cookie 驗證處理常式時。

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

屬性值

屬性

適用於