Retrieves an element at the specified index. 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 index As Integer
Dim returnValue As SomeType2
Dim readOnlyKeyedCollection1 As ReadOnlyKeyedCollection(Of SomeType1, SomeType2)
returnValue = readOnlyKeyedCollection1.GetItemByIndex(index)

Syntax

Visual Basic
Public Function GetItemByIndex( _
		ByVal index As Integer _
) As TValue
C#
public TValue GetItemByIndex(
		int index
);
C++
public:
TValue GetItemByIndex(
		int index
);
J#
public TValue GetItemByIndex(
		int index
);
JScript
JScript does not support Generics.

Parameters

index

Zero-based index of the element to retrieve.

Return Value

The element at the specified index.

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