AntiforgeryTokenSet(String, String, String, String) Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée la paire de jetons antiforgery (cookie et jeton de requête) pour une demande.
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)
Paramètres
- requestToken
- String
Jeton fourni dans la demande.
- cookieToken
- String
Jeton fourni dans le cookie de demande.
- formFieldName
- String
Nom du champ de formulaire utilisé pour le jeton de demande.
- headerName
- String
Nom de l’en-tête utilisé pour le jeton de requête.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour