CaptureCollection.IList.Item[Int32] 屬性

定義

取得位在指定索引處的元素。

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 Item(index As Integer) As Object Implements IList.Item

參數

index
Int32

要取得之項目的以零為起始的索引。

屬性值

在指定索引上的項目。

實作

備註

這個屬性可透過下列語法存取集合中的特定元素:myCollection[index]。 C# 語言會使用此 關鍵詞來定義索引器,而不是實作 Item[] 屬性。 Visual Basic 會將 Item[] 實作為預設屬性,這樣會提供相同的索引功能。

適用於