BadRequestObjectResult 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
BadRequestObjectResult(ModelStateDictionary) |
建立新的 BadRequestObjectResult 執行個體。 |
BadRequestObjectResult(Object) |
建立新的 BadRequestObjectResult 執行個體。 |
BadRequestObjectResult(ModelStateDictionary)
建立新的 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 執行個體。
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
包含要傳回給用戶端的錯誤。