Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
AntiforgeryStateProvider.GetAntiforgeryToken Method
Definition
- Namespace:
- Microsoft.AspNetCore.Components.Forms
- Assembly:
- Microsoft.AspNetCore.Components.Web.dll
- Package:
- Microsoft.AspNetCore.Components.Web v10.0.0
- Package:
- Microsoft.AspNetCore.Components.Web v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.Components.Web v8.0.19
- Package:
- Microsoft.AspNetCore.Components.Web v9.0.8
- Source:
- AntiforgeryStateProvider.cs
- Source:
- AntiforgeryStateProvider.cs
- Source:
- AntiforgeryStateProvider.cs
- Source:
- AntiforgeryStateProvider.cs
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.
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
Feedback
Was this page helpful?
