BindingContext.AddCore(Object, BindingManagerBase) 方法

定义

向集合添加与特定数据源关联的 BindingManagerBaseAdds the BindingManagerBase associated with a specific data source to the collection.

protected:
 virtual void AddCore(System::Object ^ dataSource, System::Windows::Forms::BindingManagerBase ^ listManager);
protected virtual void AddCore (object dataSource, System.Windows.Forms.BindingManagerBase listManager);
abstract member AddCore : obj * System.Windows.Forms.BindingManagerBase -> unit
override this.AddCore : obj * System.Windows.Forms.BindingManagerBase -> unit
Protected Overridable Sub AddCore (dataSource As Object, listManager As BindingManagerBase)

参数

dataSource
Object

BindingManagerBase 关联的对象。The object associated with the BindingManagerBase.

listManager
BindingManagerBase

要添加的 BindingManagerBaseThe BindingManagerBase to add.

异常

dataSourcenulldataSource is null.

- 或 --or- listManagernulllistManager is null.

适用于