ItemFieldDictionary.Add Method (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 ( _
key As UInteger, _
value As ItemField _
)
'Usage
Dim instance As ItemFieldDictionary
Dim key As UInteger
Dim value As ItemField
instance.Add(key, value)
public void Add(
uint key,
ItemField value
)
public:
virtual void Add(
unsigned int key,
ItemField^ value
) sealed
abstract Add :
key:uint32 *
value:ItemField -> unit
override Add :
key:uint32 *
value:ItemField -> unit
public final function Add(
key : uint,
value : ItemField
)
Parameters
- key
Type: System.UInt32
The key of the ItemField object to add.
- value
Type: Microsoft.Synchronization.SimpleProviders.ItemField
The value of the ItemField object to add.
Implements
IDictionary<TKey, TValue>.Add(TKey, TValue)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The value is null reference (Nothing in Visual Basic). |
ArgumentException | key is different than the field id for value. |