ValidationProblemDetails 构造函数

定义

重载

ValidationProblemDetails()

初始化 ValidationProblemDetails 的新实例。

ValidationProblemDetails(ModelStateDictionary)

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

ValidationProblemDetails(IDictionary<String,String[]>)

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

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[]>

验证错误。

适用于