AntiForgery Methods

Include Protected Members
Include Inherited Members

The AntiForgery type exposes the following members.

Methods

  Name Description
Public methodStatic member GetHtml() Adds an authenticating token to a form to help protect against request forgery.
Public methodStatic member 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.
Public methodStatic member GetTokens Gets the search tokens.
Public methodStatic member Validate() Validates that input data from an HTML form field comes from the user who submitted the data.
Public methodStatic member Validate(String, String) Validates that input data from an HTML form field comes from the user who submitted the data.
Public methodStatic member 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.

Top

See Also

Reference

AntiForgery Class

System.Web.Helpers Namespace