MatchCollection.IList<Match>.Item[Int32] 属性

定义

获取指定索引处的元素。

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

参数

index
Int32

要获取的元素的索引(索引从零开始)。

属性值

指定索引处的元素。

实现

注解

通过此属性,可以使用以下语法来访问集合中的特定元素:myCollection[index]。 C# 语言使用此关键字 (keyword) 来定义索引器,而不是实现 Item[] 属性。 Visual Basic 实现 Item[]默认属性,该属性提供相同的索引功能。

适用于