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

属性值

属性

适用于