语言

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

在集合中查找的类型。

返回

如果找到,则为整个value内第一个匹配项ConnectionInterfaceCollection的从零开始的索引;否则为 -1。

适用于