Dela via


ItemFieldDictionary.Item Property

Gets or sets the ItemField object that corresponds to the specified key.

Namespace:  Microsoft.Synchronization.SimpleProviders
Assembly:  Microsoft.Synchronization.SimpleProviders (in Microsoft.Synchronization.SimpleProviders.dll)

Syntax

'Declaration
Public Default Property Item ( _
    key As UInteger _
) As ItemField
    Get
    Set
'Usage
Dim instance As ItemFieldDictionary
Dim key As UInteger
Dim value As ItemField

value = instance(key)

instance(key) = value
public ItemField this[
    uint key
] { get; set; }
public:
virtual property ItemField^ default[unsigned int key] {
    ItemField^ get (unsigned int key) sealed;
    void set (unsigned int key, ItemField^ value) sealed;
}
abstract Item : ItemField with get, set
override Item : ItemField with get, set
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

Type: Microsoft.Synchronization.SimpleProviders.ItemField
The ItemField object that corresponds to the specified key.

Implements

IDictionary<TKey, TValue>.Item[TKey]

Exceptions

Exception Condition
ArgumentNullException

The value of the key/value pair in value is null reference (Nothing in Visual Basic).

ArgumentException

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

See Also

Reference

ItemFieldDictionary Class

Microsoft.Synchronization.SimpleProviders Namespace