Share via


DataBindingHandler.DataBindControl(IDesignerHost, Control) 方法

定義

繫結指定的控制項。

public:
 abstract void DataBindControl(System::ComponentModel::Design::IDesignerHost ^ designerHost, System::Web::UI::Control ^ control);
public abstract void DataBindControl (System.ComponentModel.Design.IDesignerHost designerHost, System.Web.UI.Control control);
abstract member DataBindControl : System.ComponentModel.Design.IDesignerHost * System.Web.UI.Control -> unit
Public MustOverride Sub DataBindControl (designerHost As IDesignerHost, control As Control)

參數

designerHost
IDesignerHost

文件的 IDesignerHost

control
Control

要繫結的 Control

備註

這個方法應該在衍生類別中執行,以提供自訂資料系結處理常式的功能。 資料系結的邏輯應該在此方法內執行,而且可以是資料系結處理常式用來系結屬性(property)或屬性(property)的類型或類型。

給實施者的注意事項

大部分的資料系結處理常式都必須使用介面檢查控制項上的資料系結集合, IDataBindingsAccessor 以判斷它可以處理的特定屬性是否為數據系結。

適用於

另請參閱