BindingSource.Insert(Int32, Object) 方法

定義

在指定的索引處將項目插入清單。

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

參數

index
Int32

應插入的以零為基礎的索引 value

value
Object

Object插入。 其值可以是 null

實作

例外狀況

index 小於零或大於 Count

該清單為唯讀或有固定大小。

備註

此方法提升事件。ListChanged

適用於

另請參閱