BadRequestObjectResult 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
包含要返回到客户端的错误。