HttpAntiForgeryException Constructor (String)

Visual Studio 2010

Initializes a new instance of the HttpAntiForgeryException class by using a specified message that describes the error.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public HttpAntiForgeryException(
	string message
)

Parameters

message
Type: System.String
The message that describes the exception. The caller of this constructor must make sure that this string has been localized for the current system culture.

The following table shows the initial property values for an instance of HttpAntiForgeryException.

Property

Value

InnerException

null.

Message

The error message string that is specified in message.

Show: