ConnectionInterfaceCollection.IndexOf(Type) 方法

定義

搜尋指定的物件,並傳回整個 ConnectionInterfaceCollection 集合中第一個相符項目之以零起始的索引。

public:
 int IndexOf(Type ^ value);
public int IndexOf (Type value);
member this.IndexOf : Type -> int
Public Function IndexOf (value As Type) As Integer

參數

value
Type

要在集合中尋找的型別。

傳回

Int32

整個 value 中第一個出現 ConnectionInterfaceCollection 之以零為起始的索引 (如有找到),否則為 -1。

適用於