Retrieves the value that matches a given key. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)

Usage

Visual Basic
Public Class SomeType1
End Class
Public Class SomeType2
End Class

Dim readOnlyKeyedCollection1 As ReadOnlyKeyedCollection(Of SomeType1, SomeType2)

Dim key As TKey
Dim returnValue As SomeType2
returnValue = readOnlyKeyedCollection1.Item(key)

Syntax

Visual Basic
Public Overridable Overloads ReadOnly Property Item( _
		ByVal key As TKey _
) As TValue
C#
public virtual TValue this[
		TKey key
] {get;}
C++
public:
property virtual TValue default[TKey] {
		TValue get(TKey key);
}
J#
public TValue get_Item(
		TKey key
);
JScript
JScript does not support Generics.

Parameters

key

Key to search for.

Property Value

The value that matches the given key.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Vista, and Windows 2000

Target Platforms

See Also