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

定义

实现 Insert(Int32, Object) 方法。 总是引发 NotSupportedException

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
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

应插入 value 的索引位置。

value
Object

要添加到 DataGridViewSelectedRowCollection 的对象。

实现

例外

始终引发。

注解

不能直接更改 DataGridViewSelectedRowCollection 类。 若要向该行添加行 DataGridViewSelectedRowCollection,请使用该 DataGridViewBand.Selected 属性。

此成员是显式接口成员的实现。 它只能在 DataGridViewSelectedRowCollection 实例被强制转换为 IList 接口时使用。

适用于

另请参阅