AntiforgeryTokenSet(String, String, String, String) Constructor

Definition

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