ListSortDescriptionCollection.IList.Insert(Int32, Object) 方法

定义

将项插入集合中的指定索引处。

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert(int index, object? value);
void IList.Insert(int index, object value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

参数

index
Int32

要获取或设置集合中的从零开始的 ListSortDescription 索引。

value
Object

要插入到集合中的项。

实现

例外

在所有情况下。

注解

ListSortDescriptionCollection因为类实现System.Collections.IList接口,所以它必须有一个IList.Insert方法。 但是,由于 ListSortDescriptionCollection 类表示只读集合,因此将项插入集合是无效的操作。

适用于