Binding.DataSourceUpdateMode 属性

定义

获取或设置一个值,该值指示将绑定控件属性的更改传播到数据源的时间。Gets or sets a value that indicates when changes to the bound control property are propagated to the data source.

public:
 property System::Windows::Forms::DataSourceUpdateMode DataSourceUpdateMode { System::Windows::Forms::DataSourceUpdateMode get(); void set(System::Windows::Forms::DataSourceUpdateMode value); };
public System.Windows.Forms.DataSourceUpdateMode DataSourceUpdateMode { get; set; }
member this.DataSourceUpdateMode : System.Windows.Forms.DataSourceUpdateMode with get, set
Public Property DataSourceUpdateMode As DataSourceUpdateMode

属性值

指示当传播更改时的值。A value that indicates when changes are propagated. 默认值为 OnValidationThe default is OnValidation.

注解

请注意,即使此属性设置为 Never,绑定将在首次建立时至少更新一次。Note that even if this property is set to Never, the binding will update at least one time, when it is first established.

适用于