DefinitionCollection<T>.IndexOf(T) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回此 DefinitionCollection<T> 中第一個出現之 item 的索引。
public int IndexOf(T item);
abstract member IndexOf : 'T -> int
override this.IndexOf : 'T -> int
參數
- item
- T
要尋找的 IDefinition 執行個體。
傳回
System.Int32
實作
System.Collections.Generic.IList`1.IndexOf(`0)