語言

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

在收藏中尋找的類型。

傳回

若找到,則為 首次出現valueConnectionInterfaceCollection的零基指數;否則為 -1。

適用於