Share via


ReadOnlyDictionary<TKey, TValue>.IDictionary<TKey, TValue>.Item Property

Gets the value that is related to the specified key in this dictionary.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Private Property Item ( _
    key As TKey _
) As TValue Implements IDictionary(Of TKey, TValue).Item
TValue IDictionary<TKey, TValue>.this[
    TKey key
] { get; set; }
private:
virtual property TValue Item[TKey key] {
    TValue get (TKey key) sealed = IDictionary<TKey, TValue>::Item::get;
    void set (TKey key, TValue value) sealed = IDictionary<TKey, TValue>::Item::set;
}
private abstract Item : 
        key:'TKey -> 'TValue with get, set 
private override Item : 
        key:'TKey -> 'TValue with get, set
JScript does not support explicit interface implementations.

Parameters

  • key
    Type: TKey

    The key for which a value is desired.

Property Value

Type: TValue
The value that is associated with the specified key in this dictionary.

Implements

IDictionary<TKey, TValue>.Item

.NET Framework Security

See Also

Reference

ReadOnlyDictionary<TKey, TValue> Class

Microsoft.TeamFoundation.Client Namespace