ImmutableList<T>.Builder.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 表示該項目未插入到集合中。

實作

例外狀況

備註

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

適用於