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.Http.ModelBinding
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub New ( _
dictionary As ModelStateDictionary _
)
'Usage
Dim dictionary As ModelStateDictionary
Dim instance As New ModelStateDictionary(dictionary)
public ModelStateDictionary(
ModelStateDictionary dictionary
)
public:
ModelStateDictionary(
ModelStateDictionary^ dictionary
)
new :
dictionary:ModelStateDictionary -> ModelStateDictionary
public function ModelStateDictionary(
dictionary : ModelStateDictionary
)
Parameters
- dictionary
Type: System.Web.Http.ModelBinding.ModelStateDictionary
The dictionary.