Adds an element that has the specified key and value to the model-state dictionary.
Namespace:  System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub Add ( _
    key As String, _
    value As ModelState _
)
'Usage
Dim instance As ModelStateDictionary
Dim key As String
Dim value As ModelState
instance.Add(key, value)
public void Add(
    string key,
    ModelState value
)
public:
virtual void Add(
    String^ key, 
    ModelState^ value
) sealed
abstract Add : 
        key:string * 
        value:ModelState -> unit 
override Add : 
        key:string * 
        value:ModelState -> unit 
public final function Add(
    key : String, 
    value : ModelState
)
Parameters
- key
 Type: System.String
 The key of the element to add.
- value
 Type: System.Web.Http.ModelBinding.ModelState
 The value of the element to add.
Implements
IDictionary<TKey, TValue>.Add(TKey, TValue)