共用方式為


UnprocessableEntityObjectResult 建構函式

定義

多載

UnprocessableEntityObjectResult(ModelStateDictionary)

建立新的 UnprocessableEntityObjectResult 執行個體。

UnprocessableEntityObjectResult(Object)

建立新的 UnprocessableEntityObjectResult 執行個體。

UnprocessableEntityObjectResult(ModelStateDictionary)

來源:
UnprocessableEntityObjectResult.cs
來源:
UnprocessableEntityObjectResult.cs
來源:
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)

來源:
UnprocessableEntityObjectResult.cs
來源:
UnprocessableEntityObjectResult.cs
來源:
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

包含要傳回給用戶端的錯誤。

適用於