BadRequestObjectResult 构造函数

定义

重载

BadRequestObjectResult(ModelStateDictionary)

创建一个新的 BadRequestObjectResult 实例。

BadRequestObjectResult(Object)

创建一个新的 BadRequestObjectResult 实例。

BadRequestObjectResult(ModelStateDictionary)

Source:
BadRequestObjectResult.cs
Source:
BadRequestObjectResult.cs
Source:
BadRequestObjectResult.cs

创建一个新的 BadRequestObjectResult 实例。

public:
 BadRequestObjectResult(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelState);
public BadRequestObjectResult (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState);
new Microsoft.AspNetCore.Mvc.BadRequestObjectResult : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.BadRequestObjectResult
Public Sub New (modelState As ModelStateDictionary)

参数

modelState
ModelStateDictionary

ModelStateDictionary 包含验证错误。

适用于

BadRequestObjectResult(Object)

Source:
BadRequestObjectResult.cs
Source:
BadRequestObjectResult.cs
Source:
BadRequestObjectResult.cs

创建一个新的 BadRequestObjectResult 实例。

public:
 BadRequestObjectResult(System::Object ^ error);
public BadRequestObjectResult (object error);
public BadRequestObjectResult (object? error);
new Microsoft.AspNetCore.Mvc.BadRequestObjectResult : obj -> Microsoft.AspNetCore.Mvc.BadRequestObjectResult
Public Sub New (error As Object)

参数

error
Object

包含要返回到客户端的错误。

适用于