AntiforgeryValidationException Constructors

Definition

Overloads

AntiforgeryValidationException(String)

Creates a new instance of AntiforgeryValidationException with the specified exception message.

AntiforgeryValidationException(String, Exception)

Creates a new instance of AntiforgeryValidationException with the specified exception message and inner exception.

AntiforgeryValidationException(String)

Source:
AntiforgeryValidationException.cs
Source:
AntiforgeryValidationException.cs
Source:
AntiforgeryValidationException.cs

Creates a new instance of AntiforgeryValidationException with the specified exception message.

C#
public AntiforgeryValidationException (string message);

Parameters

message
String

The message that describes the error.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

AntiforgeryValidationException(String, Exception)

Source:
AntiforgeryValidationException.cs
Source:
AntiforgeryValidationException.cs
Source:
AntiforgeryValidationException.cs

Creates a new instance of AntiforgeryValidationException with the specified exception message and inner exception.

C#
public AntiforgeryValidationException (string message, Exception innerException);
C#
public AntiforgeryValidationException (string message, Exception? innerException);

Parameters

message
String

The message that describes the error.

innerException
Exception

The inner Exception.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0