CodeTypeParameterCollection.IndexOf(CodeTypeParameter) 方法
定义
获取指定的 CodeTypeParameter 对象在该集合中的索引(如果它在该集合中存在)。Gets the index in the collection of the specified CodeTypeParameter object, if it exists in the collection.
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 对象。The CodeTypeParameter object to locate in the collection.
返回
如果在集合中找到了指定的 CodeTypeParameter 对象,则为它在集合中的从零开始的索引;如果找不到,则为 -1。The zero-based index of the specified CodeTypeParameter object in the collection if found; otherwise, -1.