ItemFieldDictionary.Add Method (KeyValuePair<UInt32, ItemField>)
Adds an ItemField object to the ItemFieldDictionary collection.
Namespace: Microsoft.Synchronization.SimpleProviders
Assembly: Microsoft.Synchronization.SimpleProviders (in Microsoft.Synchronization.SimpleProviders.dll)
Syntax
'Declaration
Public Sub Add ( _
item As KeyValuePair(Of UInteger, ItemField) _
)
'Usage
Dim instance As ItemFieldDictionary
Dim item As KeyValuePair(Of UInteger, ItemField)
instance.Add(item)
public void Add(
KeyValuePair<uint, ItemField> item
)
public:
virtual void Add(
KeyValuePair<unsigned int, ItemField^> item
) sealed
abstract Add :
item:KeyValuePair<uint32, ItemField> -> unit
override Add :
item:KeyValuePair<uint32, ItemField> -> unit
public final function Add(
item : KeyValuePair<uint, ItemField>
)
Parameters
- item
Type: System.Collections.Generic.KeyValuePair<UInt32, ItemField>
The ItemField object to add to the ItemFieldDictionary collection.
Implements
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The value of the key/value pair in item is null reference (Nothing in Visual Basic). |
ArgumentException | The key in item is different than the field id for the value in item. |