AntiforgeryValidationException 构造函数

定义

重载

AntiforgeryValidationException(String)

创建具有指定异常消息的 的新实例 AntiforgeryValidationException

AntiforgeryValidationException(String, Exception)

使用指定的异常消息和内部异常创建 的新实例 AntiforgeryValidationException

AntiforgeryValidationException(String)

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

创建具有指定异常消息的 的新实例 AntiforgeryValidationException

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)

参数

message
String

描述错误的消息。

适用于

AntiforgeryValidationException(String, Exception)

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

使用指定的异常消息和内部异常创建 的新实例 AntiforgeryValidationException

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)

参数

message
String

描述错误的消息。

innerException
Exception

内部 Exception

适用于