语言

CaptureCollection.Item[Int32] 属性

定义

获取集合的单个成员。

public:
 property System::Text::RegularExpressions::Capture ^ default[int] { System::Text::RegularExpressions::Capture ^ get(int i); };
public System.Text.RegularExpressions.Capture this[int i] { get; }
member this.Item(int) : System.Text.RegularExpressions.Capture
Default Public ReadOnly Property Item(i As Integer) As Capture

参数

i
Int32

捕获集合中的索引。

属性值

捕获的子字符串位于集合中的位置 i 。

实现

例外

集合为只读。

i 小于 0 或大于或等于 Count。

适用于