AntiforgeryTokenSet(String, String, String, String) Construtor

Definição

Cria o par de tokens antiforgery (cookie e token de solicitação) para uma solicitação.

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)

Parâmetros

requestToken
String

O token fornecido na solicitação.

cookieToken
String

O token fornecido no cookie de solicitação.

formFieldName
String

O nome do campo de formulário usado para o token de solicitação.

headerName
String

O nome do cabeçalho usado para o token de solicitação.

Aplica-se a