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 類別代表唯讀集合,所以將專案加入集合是無效的作業。

適用於