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)

public:
virtual void Add(
	KeyValuePair<unsigned int, ItemField^> item
) sealed

Parameters

item
Type: System.Collections.Generic::KeyValuePair<UInt32, ItemField>
The ItemField object to add to the ItemFieldDictionary collection.

Implements

ICollection<T>::Add(T)

ExceptionCondition
ArgumentNullException

The value of the key/value pair in item is nullptr.

ArgumentException

The key in item is different than the field id for the value in item.

Show: