BadHttpRequestException 构造函数

定义

重载

BadHttpRequestException(String)

初始化 类的新实例, BadHttpRequestException 并将 StatusCode 设置为 400 错误请求。

BadHttpRequestException(String, Exception)

初始化 类的新实例, BadHttpRequestException 并将 StatusCode 设置为 400 错误请求。

BadHttpRequestException(String, Int32)

初始化 BadHttpRequestException 类的新实例。

BadHttpRequestException(String, Int32, Exception)

初始化 BadHttpRequestException 类的新实例。

BadHttpRequestException(String)

Source:
BadHttpRequestException.cs

初始化 类的新实例, BadHttpRequestException 并将 StatusCode 设置为 400 错误请求。

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

参数

message
String

要与此异常关联的消息

适用于

BadHttpRequestException(String, Exception)

Source:
BadHttpRequestException.cs

初始化 类的新实例, BadHttpRequestException 并将 StatusCode 设置为 400 错误请求。

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

参数

message
String

要与此异常关联的消息

innerException
Exception

要与此异常关联的内部异常

适用于

BadHttpRequestException(String, Int32)

Source:
BadHttpRequestException.cs

初始化 BadHttpRequestException 类的新实例。

public:
 BadHttpRequestException(System::String ^ message, int statusCode);
public BadHttpRequestException (string message, int statusCode);
new Microsoft.AspNetCore.Http.BadHttpRequestException : string * int -> Microsoft.AspNetCore.Http.BadHttpRequestException
Public Sub New (message As String, statusCode As Integer)

参数

message
String

要与此异常关联的消息。

statusCode
Int32

要与此异常关联的 HTTP 状态代码。

适用于

BadHttpRequestException(String, Int32, Exception)

Source:
BadHttpRequestException.cs

初始化 BadHttpRequestException 类的新实例。

public:
 BadHttpRequestException(System::String ^ message, int statusCode, Exception ^ innerException);
public BadHttpRequestException (string message, int statusCode, Exception innerException);
new Microsoft.AspNetCore.Http.BadHttpRequestException : string * int * Exception -> Microsoft.AspNetCore.Http.BadHttpRequestException
Public Sub New (message As String, statusCode As Integer, innerException As Exception)

参数

message
String

要与此异常关联的消息。

statusCode
Int32

要与此异常关联的 HTTP 状态代码。

innerException
Exception

要与此异常关联的内部异常

适用于