AntiforgeryValidationException Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
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
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 |
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.
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 |