ValueProviderDictionary.Add Method (KeyValuePair<String, ValueProviderResult>)
Adds the specified item to the collection of value providers.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub Add ( _
item As KeyValuePair(Of String, ValueProviderResult) _
)
public void Add(
KeyValuePair<string, ValueProviderResult> item
)
public:
virtual void Add(
KeyValuePair<String^, ValueProviderResult^> item
) sealed
Parameters
- item
Type: System.Collections.Generic.KeyValuePair<String, ValueProviderResult>
The object to add to the ICollection<T> object.
Implements
Exceptions
Exception | Condition |
---|---|
NotSupportedException | The ICollection<T> object is read-only. |