ModelStateDictionary 构造函数

定义

重载

ModelStateDictionary()

初始化 ModelStateDictionary 类的新实例。

ModelStateDictionary(ModelStateDictionary)

使用从指定的 dictionary复制的值初始化 类的新实例ModelStateDictionary

ModelStateDictionary(Int32)

初始化 ModelStateDictionary 类的新实例。

ModelStateDictionary()

Source:
ModelStateDictionary.cs
Source:
ModelStateDictionary.cs
Source:
ModelStateDictionary.cs

初始化 ModelStateDictionary 类的新实例。

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

适用于

ModelStateDictionary(ModelStateDictionary)

Source:
ModelStateDictionary.cs
Source:
ModelStateDictionary.cs
Source:
ModelStateDictionary.cs

使用从指定的 dictionary复制的值初始化 类的新实例ModelStateDictionary

public:
 ModelStateDictionary(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ dictionary);
public ModelStateDictionary (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary);
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary
Public Sub New (dictionary As ModelStateDictionary)

参数

dictionary
ModelStateDictionary

ModelStateDictionary要从中复制值的 。

适用于

ModelStateDictionary(Int32)

Source:
ModelStateDictionary.cs
Source:
ModelStateDictionary.cs
Source:
ModelStateDictionary.cs

初始化 ModelStateDictionary 类的新实例。

public:
 ModelStateDictionary(int maxAllowedErrors);
public ModelStateDictionary (int maxAllowedErrors);
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary : int -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary
Public Sub New (maxAllowedErrors As Integer)

参数

maxAllowedErrors
Int32

适用于