Share via


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.

public:
 AntiforgeryValidationException(System::String ^ message);
public AntiforgeryValidationException (string message);
new Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException : string -> Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

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.

public:
 AntiforgeryValidationException(System::String ^ message, Exception ^ innerException);
public AntiforgeryValidationException (string message, Exception innerException);
public AntiforgeryValidationException (string message, Exception? innerException);
new Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException : string * Exception -> Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message that describes the error.

innerException
Exception

The inner Exception.

Applies to