共用方式為


BadRequestObjectResult 建構函式

定義

多載

BadRequestObjectResult(ModelStateDictionary)

建立新的 BadRequestObjectResult 執行個體。

BadRequestObjectResult(Object)

建立新的 BadRequestObjectResult 執行個體。

BadRequestObjectResult(ModelStateDictionary)

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

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

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

適用於