AntiforgeryStateProvider.GetAntiforgeryToken Method

Definition

Gets the current AntiforgeryRequestToken if available.

public abstract Microsoft.AspNetCore.Components.Forms.AntiforgeryRequestToken? GetAntiforgeryToken ();
abstract member GetAntiforgeryToken : unit -> Microsoft.AspNetCore.Components.Forms.AntiforgeryRequestToken
Public MustOverride Function GetAntiforgeryToken () As AntiforgeryRequestToken

Returns

The current AntiforgeryRequestToken if available.

Applies to