BindingExpression.UpdateSource 方法

定義

將目前的繫結目標值傳送至 TwoWayOneWayToSource 繫結的繫結來源屬性。Sends the current binding target value to the binding source property in TwoWay or OneWayToSource bindings.

public:
 override void UpdateSource();
public override void UpdateSource ();
override this.UpdateSource : unit -> unit
Public Overrides Sub UpdateSource ()

例外狀況

繫結已與目標中斷連結。The binding has been detached from its target.

備註

當系結的不Mode TwoWay是或OneWayToSource時, 這個方法不會執行任何操作。This method does nothing when the Mode of the binding is not TwoWay or OneWayToSource.

如果您UpdateSourceTrigger的系結值設定為Explicit UpdateSource , 您必須呼叫方法, 否則變更不會傳播回來源。If the UpdateSourceTrigger value of your binding is set to Explicit, you must call the UpdateSource method or the changes will not propagate back to the source.

適用於

另請參閱