Item Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the element at the specified index.

Namespace:  System.Collections
Assembly:  mscorlib (in mscorlib.dll)

property Object^ Item[int index] {
	Object^ get (int index);
	void set (int index, Object^ value);
}

Parameters

index
Type: System..::..Int32
The zero-based index of the element to get or set.

Property Value

Type: System..::..Object
The element at the specified index.

This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[index].

Show: