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)

'Declaration
Public Sub New ( _
	message As String _
)

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

Nothing.

Message

The error message string that is specified in message.

Community Additions

ADD
Show: