ListBox.SelectedIndexCollection.IList.Insert(Int32, Object) 方法

定义

有关此成员的说明,请参阅 Insert(Int32, Object)For a description of this member, see 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);
Sub Insert (index As Integer, value As Object) Implements IList.Insert

参数

index
Int32

应插入 value 的索引位置。The index at which value should be inserted.

value
Object

要添加到 ListBox.SelectedIndexCollection 的对象。The object to be added to the ListBox.SelectedIndexCollection.

实现

异常

始终引发。Always thrown.

注解

此成员是显式接口成员实现。This member is an explicit interface member implementation. 它只能在 ListBox.SelectedIndexCollection 实例被强制转换为 IList 接口时使用。It can be used only when the ListBox.SelectedIndexCollection instance is cast to an IList interface.

不能直接更改 ListBox.SelectedIndexCollection 类。You cannot change the ListBox.SelectedIndexCollection class directly. 若要将项添加到 ListBox.SelectedIndexCollection,请使用 SelectedItem 属性或 SetSelected 方法。To add an item to the ListBox.SelectedIndexCollection, use the SelectedItem property or the SetSelected method.

适用于

另请参阅