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

定義

將項目加入至資料集。

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

參數

value
Object

要加入至資料集的物件。

傳回

插入新元素的位置,-1 表示該項目未插入到集合中。

實作

例外狀況

此集合是唯讀的,或具有固定大小。

備註

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

System.Collections.Immutable NuGet 套件

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

適用於