CodeTypeParameterCollection.IndexOf(CodeTypeParameter) 方法

定义

获取指定 CodeTypeParameter 对象的集合中的索引(如果该索引存在于集合中)。

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

参数

value
CodeTypeParameter

CodeTypeParameter 定位在集合中的对象。

返回

如果找到集合中指定 CodeTypeParameter 对象的从零开始的索引,则为 -1。

适用于

另请参阅