CaptureCollection.IList<Capture>.IndexOf(Capture) 方法

定義

決定集合中指定項目的索引。

 virtual int System.Collections.Generic.IList<System.Text.RegularExpressions.Capture>.IndexOf(System::Text::RegularExpressions::Capture ^ item) = System::Collections::Generic::IList<System::Text::RegularExpressions::Capture ^>::IndexOf;
int IList<Capture>.IndexOf (System.Text.RegularExpressions.Capture item);
abstract member System.Collections.Generic.IList<System.Text.RegularExpressions.Capture>.IndexOf : System.Text.RegularExpressions.Capture -> int
override this.System.Collections.Generic.IList<System.Text.RegularExpressions.Capture>.IndexOf : System.Text.RegularExpressions.Capture -> int
Function IndexOf (item As Capture) As Integer Implements IList(Of Capture).IndexOf

參數

item
Capture

要在集合中找出的物件。

傳回

如果可在清單中找到則為 item 的索引,否則為 -1。

實作

備註

如果物件在清單中多次出現,則 IndexOf 方法一定會傳回找到的第一個執行個體。

適用於