ValidationProblemDetails 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ValidationProblemDetails() |
初始化 ValidationProblemDetails 的新執行個體。 |
ValidationProblemDetails(ModelStateDictionary) |
使用指定的 |
ValidationProblemDetails(IDictionary<String,String[]>) |
使用指定的 |
ValidationProblemDetails()
初始化 ValidationProblemDetails 的新執行個體。
public:
ValidationProblemDetails();
public ValidationProblemDetails ();
Public Sub New ()
適用於
ValidationProblemDetails(ModelStateDictionary)
使用指定的 modelState
,初始化 的新實例 ValidationProblemDetails 。
public:
ValidationProblemDetails(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelState);
public ValidationProblemDetails (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState);
new Microsoft.AspNetCore.Mvc.ValidationProblemDetails : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ValidationProblemDetails
Public Sub New (modelState As ModelStateDictionary)
參數
- modelState
- ModelStateDictionary
ModelStateDictionary 包含驗證錯誤。
適用於
ValidationProblemDetails(IDictionary<String,String[]>)
使用指定的 errors
,初始化 的新實例 ValidationProblemDetails 。
public:
ValidationProblemDetails(System::Collections::Generic::IDictionary<System::String ^, cli::array <System::String ^> ^> ^ errors);
public ValidationProblemDetails (System.Collections.Generic.IDictionary<string,string[]> errors);
new Microsoft.AspNetCore.Mvc.ValidationProblemDetails : System.Collections.Generic.IDictionary<string, string[]> -> Microsoft.AspNetCore.Mvc.ValidationProblemDetails
Public Sub New (errors As IDictionary(Of String, String()))
參數
- errors
- IDictionary<String,String[]>
驗證錯誤。