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。

適用於

另請參閱