ValidationProblemDetails 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ValidationProblemDetails() |
初始化 ValidationProblemDetails 的新实例。 |
ValidationProblemDetails(ModelStateDictionary) |
使用指定的 |
ValidationProblemDetails(IDictionary<String,String[]>) |
使用指定的 |
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[]>
验证错误。