Export (0) Print
Expand All

HttpAntiForgeryException Constructor

.NET Framework 4

Initializes a new instance of the HttpAntiForgeryException class by using a system-supplied message that describes the error.

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

public HttpAntiForgeryException()

This constructor initializes the Message property to a system-supplied message that describes the error, such as "DefaultMessageDisplayedByParameterlessCtorWriterMustSupply". This message takes into account the current system culture.

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

Property

Value

InnerException

null.

Message

The localized error message string.

Community Additions

ADD
Show:
© 2015 Microsoft