ValidationProblemDetails 构造函数

定义

重载

ValidationProblemDetails()

初始化 ValidationProblemDetails 的新实例。

ValidationProblemDetails(ModelStateDictionary)

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

ValidationProblemDetails(IDictionary<String,String[]>)

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

ValidationProblemDetails()

Source:
ValidationProblemDetails.cs
Source:
ValidationProblemDetails.cs
Source:
ValidationProblemDetails.cs

初始化 ValidationProblemDetails 的新实例。

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

适用于

ValidationProblemDetails(ModelStateDictionary)

Source:
ValidationProblemDetails.cs
Source:
ValidationProblemDetails.cs
Source:
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[]>)

Source:
ValidationProblemDetails.cs
Source:
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[]>

验证错误。

适用于