BindingContext.AddCore(Object, BindingManagerBase) 方法

定義

加入與特定資料來源相關的 BindingManagerBase 至集合中。Adds 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.

適用於