UnprocessableEntityObjectResult 构造函数

定义

重载

UnprocessableEntityObjectResult(ModelStateDictionary)

创建一个新的 UnprocessableEntityObjectResult 实例。

UnprocessableEntityObjectResult(Object)

创建一个新的 UnprocessableEntityObjectResult 实例。

UnprocessableEntityObjectResult(ModelStateDictionary)

Source:
UnprocessableEntityObjectResult.cs
Source:
UnprocessableEntityObjectResult.cs
Source:
UnprocessableEntityObjectResult.cs

创建一个新的 UnprocessableEntityObjectResult 实例。

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

参数

modelState
ModelStateDictionary

ModelStateDictionary 包含验证错误。

适用于

UnprocessableEntityObjectResult(Object)

Source:
UnprocessableEntityObjectResult.cs
Source:
UnprocessableEntityObjectResult.cs
Source:
UnprocessableEntityObjectResult.cs

创建一个新的 UnprocessableEntityObjectResult 实例。

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

参数

error
Object

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

适用于