Condividi tramite


ModelStateDictionary Constructor (ModelStateDictionary)

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

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Sub New ( _
    dictionary As ModelStateDictionary _
)
public ModelStateDictionary(
    ModelStateDictionary dictionary
)
public:
ModelStateDictionary(
    ModelStateDictionary^ dictionary
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The dictionary parameter is null reference (Nothing in Visual Basic).

See Also

Reference

ModelStateDictionary Class

ModelStateDictionary Overload

System.Web.Mvc Namespace