AntiforgeryTokenSet(String, String, String, String) Constructor
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.
Creates the antiforgery token pair (cookie and request token) for a request.
public:
AntiforgeryTokenSet(System::String ^ requestToken, System::String ^ cookieToken, System::String ^ formFieldName, System::String ^ headerName);
public AntiforgeryTokenSet (string requestToken, string cookieToken, string formFieldName, string headerName);
public AntiforgeryTokenSet (string? requestToken, string? cookieToken, string formFieldName, string? headerName);
new Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet : string * string * string * string -> Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet
Public Sub New (requestToken As String, cookieToken As String, formFieldName As String, headerName As String)
Parameters
- requestToken
- String
The token that is supplied in the request.
- cookieToken
- String
The token that is supplied in the request cookie.
- formFieldName
- String
The name of the form field used for the request token.
- headerName
- String
The name of the header used for the request token.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for