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 的唯一名稱。

適用於