共用方式為


BindingContext.UpdateBinding(BindingContext, Binding) 方法

定義

Binding 與新的 BindingContext 產生關聯。

public:
 static void UpdateBinding(System::Windows::Forms::BindingContext ^ newBindingContext, System::Windows::Forms::Binding ^ binding);
public static void UpdateBinding (System.Windows.Forms.BindingContext newBindingContext, System.Windows.Forms.Binding binding);
static member UpdateBinding : System.Windows.Forms.BindingContext * System.Windows.Forms.Binding -> unit
Public Shared Sub UpdateBinding (newBindingContext As BindingContext, binding As Binding)

參數

newBindingContext
BindingContext

要與 BindingContext 產生關聯的新 Binding

binding
Binding

要與新 Binding 產生關聯的 BindingContext

備註

這個方法的目的是要更新在變更時 BindingContextIBindableComponent 作 的元件系結。

適用於