Share via


AntiForgery.Validate Method (String, String)

Validates that input data from an HTML form field comes from the user who submitted the data.

Namespace:  System.Web.Helpers
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public Shared Sub Validate ( _
    cookieToken As String, _
    formToken As String _
)
'Usage
Dim cookieToken As String 
Dim formToken As String 

AntiForgery.Validate(cookieToken, formToken)
public static void Validate(
    string cookieToken,
    string formToken
)
public:
static void Validate(
    String^ cookieToken, 
    String^ formToken
)
static member Validate : 
        cookieToken:string * 
        formToken:string -> unit
public static function Validate(
    cookieToken : String, 
    formToken : String
)

Parameters

See Also

Reference

AntiForgery Class

Validate Overload

System.Web.Helpers Namespace