ListSortDescriptionCollection.IList.Add(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將專案加入至集合。
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 類別代表唯讀集合,新增項目到集合中是無效的操作。