AntiforgeryOptions.CookieName 属性

定义

注意

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

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

指定防伪造系统使用的 Cookie 的名称。

public:
 property System::String ^ CookieName { System::String ^ get(); void set(System::String ^ value); };
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; }
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

属性值

属性

注解

如果未提供显式名称,系统将自动生成以 开头 DefaultCookiePrefix的唯一名称。

适用于