CaptureCollection.IList<Capture>.Item[Int32] 屬性

定義

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

property System::Text::RegularExpressions::Capture ^ System::Collections::Generic::IList<System::Text::RegularExpressions::Capture>::Item[int] { System::Text::RegularExpressions::Capture ^ get(int index); void set(int index, System::Text::RegularExpressions::Capture ^ value); };
System.Text.RegularExpressions.Capture System.Collections.Generic.IList<System.Text.RegularExpressions.Capture>.Item[int index] { get; set; }
member this.System.Collections.Generic.IList<System.Text.RegularExpressions.Capture>.Item(int) : System.Text.RegularExpressions.Capture with get, set
 Property Item(index As Integer) As Capture Implements IList(Of Capture).Item

參數

index
Int32

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

屬性值

在指定索引上的項目。

實作

備註

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

適用於