AntiForgery Class
Definition
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.
Helps prevent malicious scripts from submitting forged page requests.
public static class AntiForgery
type AntiForgery = class
Public Class AntiForgery
- Inheritance
-
AntiForgery
Methods
GetHtml() |
Adds an authenticating token to a form to help protect against request forgery. |
GetHtml(HttpContextBase, String, String, String) |
Obsolete.
Adds an authenticating token to a form to help protect against request forgery and lets callers specify authentication details. |
GetTokens(String, String, String) |
Gets the search tokens. |
Validate() |
Validates that input data from an HTML form field comes from the user who submitted the data. |
Validate(HttpContextBase, String) |
Obsolete.
Validates that input data from an HTML form field comes from the user who submitted the data and lets callers specify additional validation details. |
Validate(String, String) |
Validates that input data from an HTML form field comes from the user who submitted the data. |