ListBox.SelectedIndexCollection.IList.Remove(Object) 方法

定义

有关此成员的说明,请参见 Remove(Object)For a description of this member, see Remove(Object).

 virtual void System.Collections.IList.Remove(System::Object ^ value) = System::Collections::IList::Remove;
void IList.Remove (object value);
Sub Remove (value As Object) Implements IList.Remove

参数

value
Object

要从 ListBox.SelectedIndexCollection 移除的对象。The object to be removed from 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. 若要从 @no__t 中删除项,请使用 @no__t 属性或 SetSelected 方法。To remove an item from the ListBox.SelectedIndexCollection, use the SelectedIndex property or the SetSelected method.

适用于