Share via


ModelStateDictionary Constructors

Definition

Overloads

ModelStateDictionary()

Initializes a new instance of the ModelStateDictionary class.

ModelStateDictionary(ModelStateDictionary)

Initializes a new instance of the ModelStateDictionary class by using values that are copied from the specified dictionary.

ModelStateDictionary(Int32)

Initializes a new instance of the ModelStateDictionary class.

ModelStateDictionary()

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

Initializes a new instance of the ModelStateDictionary class.

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

Applies to

ModelStateDictionary(ModelStateDictionary)

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

Initializes a new instance of the ModelStateDictionary class by using values that are copied from the specified dictionary.

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)

Parameters

dictionary
ModelStateDictionary

The ModelStateDictionary to copy values from.

Applies to

ModelStateDictionary(Int32)

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

Initializes a new instance of the ModelStateDictionary class.

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)

Parameters

maxAllowedErrors
Int32

Applies to