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

注解

此方法旨在更新在组件更改时BindingContext实现IBindableComponent的组件的绑定。

适用于