GroupCollection.IList<Group>.IndexOf(Group) 方法

定義

判斷群組集合中特定群組的索引。

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

參數

item
Group

要在群組集合中尋找的群組。

傳回

如果找到,則為 item 的索引;否則為 -1。

實作

備註

這個成員是明確介面成員實作, 只有在 GroupCollection 執行個體轉換成 IList<T> 介面時,才能使用這個成員。

適用於