AntiforgeryOptions.CookieName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This property is obsolete and will be removed in a future version. The recommended alternative is Cookie.Name.
This property is obsolete and will be removed in a future version. The recommended alternative is on Cookie.
Specifies the name of the cookie that is used by the antiforgery system.
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
Property Value
- Attributes
Remarks
If an explicit name is not provided, the system will automatically generate a unique name that begins with DefaultCookiePrefix.