Click or drag to resize

HttpConfigurationExtensionsValidateRequestVerificationToken(HttpRequestMessage, Boolean) Method

Validates that the anti-forgery request verification token value comes from the user who submitted the data.

Namespace: GSF.Web.Security
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public static void ValidateRequestVerificationToken(
	this HttpRequestMessage request,
	bool formValidation = false
)
View Source

Parameters

request  HttpRequestMessage
HTTP request message.
formValidation  Boolean  (Optional)
Flag that determines if form validation should be used.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpRequestMessage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also