Freigeben über


HttpAntiForgeryException Constructor (String)

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)

Syntax

'Declaration
Public Sub New ( _
    message As String _
)
public HttpAntiForgeryException(
    string message
)
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.

Remarks

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

Property

Value

InnerException

null reference (Nothing in Visual Basic).

Message

The error message string that is specified in message.

See Also

Reference

HttpAntiForgeryException Class

HttpAntiForgeryException Overload

System.Web.Mvc Namespace

Other Resources

Handling and Throwing Exceptions