Collection.IList.Item[Int32] プロパティ

定義

指定したインデックスにある要素を取得または設定します。

property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int Index); void set(int Index, System::Object ^ value); };
property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
object System.Collections.IList.Item[int Index] { get; set; }
object System.Collections.IList.Item[int index] { get; set; }
member this.System.Collections.IList.Item(int) : obj with get, set
 Property IListItem(Index As Integer) As Object Implements IList.Item
 Property IListItem(index As Integer) As Object Implements IList.Item

パラメーター

indexIndex
Int32

取得または設定する要素を示す 0 から始まるインデックス。

プロパティ値

指定したインデックス位置にある要素。

例外

index は、Collection オブジェクトで有効なインデックスではありません。

このプロパティが設定されていますが、Collection オブジェクトが読み取り専用です。

適用対象