Language

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 。

注釈

カスタム データ バインディング ハンドラーに機能を提供するには、このメソッドを派生クラスに実装する必要があります。 データ バインディングのロジックは、このメソッド内に実装する必要があり、データ バインディング ハンドラーがプロパティまたはプロパティをバインドする型に固有である場合があります。

注意 (実装者)

ほとんどのデータ バインディング ハンドラーは、 IDataBindingsAccessor インターフェイスを使用してコントロールのデータ バインディング コレクションを調べて、処理できる特定のプロパティがデータ バインドであるかどうかを判断する必要があります。

適用対象

こちらもご覧ください