Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- key
Type: System.UInt32
The key of the ItemField object to get or set.
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. |