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