ConnectionInterfaceCollection.IndexOf(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
搜尋指定物件,並回傳整個 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。