共用方式為


ValidationProblemDetails 建構函式

定義

多載

ValidationProblemDetails()

初始化 ValidationProblemDetails 的新執行個體。

ValidationProblemDetails(ModelStateDictionary)

使用指定的 modelState ,初始化 的新實例 ValidationProblemDetails

ValidationProblemDetails(IDictionary<String,String[]>)

使用指定的 errors ,初始化 的新實例 ValidationProblemDetails

ValidationProblemDetails()

來源:
ValidationProblemDetails.cs
來源:
ValidationProblemDetails.cs
來源:
ValidationProblemDetails.cs

初始化 ValidationProblemDetails 的新執行個體。

public:
 ValidationProblemDetails();
public ValidationProblemDetails ();
Public Sub New ()

適用於

ValidationProblemDetails(ModelStateDictionary)

來源:
ValidationProblemDetails.cs
來源:
ValidationProblemDetails.cs
來源:
ValidationProblemDetails.cs

使用指定的 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[]>)

來源:
ValidationProblemDetails.cs
來源:
ValidationProblemDetails.cs

使用指定的 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[]>

驗證錯誤。

適用於