語言

ListSortDescriptionCollection.IList.Add(Object) 方法

定義

將專案加入至集合。

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add(object? value);
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

要加入收藏的物品。

傳回

新元件插入的位置。

實作

例外狀況

無論哪種情況。

備註

因為該 ListSortDescriptionCollection 類別實作了介面, System.Collections.IList 因此必須有 IList.Add 方法。 然而,由於該 ListSortDescriptionCollection 類別代表唯讀集合,新增項目到集合中是無效的操作。

適用於