ImmutableSortedSet<T>.IList.IndexOf(Object) 方法

定義

判斷資料集中特定項目的索引。

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
int IList.IndexOf (object value);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

參數

value
Object

要在資料集中尋找的物件。

傳回

如果可在清單中找到則為 value 的索引,否則為 -1。

實作

備註

這個成員是明確介面成員實作, 只有在 ImmutableSortedSet<T> 執行個體轉換成 IList 介面時,才能使用這個成員。

System.Collections.Immutable NuGet 套件

關於不可變的集合以及如何安裝

適用於