API
ValidateAntiForgeryTokenAttribute
Requires antiforgery validation for a controller action.
Formal Syntax & Structure
csharp syntaxcsharp
[ValidateAntiForgeryToken]Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.[ValidateAntiForgeryToken]