BindingExpression.UpdateTarget 方法

定義

強制執行從繫結來源屬性至繫結目標屬性的資料傳輸。Forces a data transfer from the binding source property to the binding target property.

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

例外狀況

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

備註

這個方法可讓您強制將資料從來源屬性傳送至目標屬性。This method enables you to force a data transfer from the source property to the target property. 如果您的來源物件會執行適當的屬性變更通知機制 ( INotifyPropertyChanged例如), 目標更新會自動進行。If your source object implements a proper property-changed notification mechanism such as INotifyPropertyChanged, target updates happen automatically. 不過, 如果您的來源物件未提供適當的屬性變更通知, 您可以選擇使用此方法來明確更新目標屬性。However, you have the option to use this method to update the target property explicitly in cases where your source object does not provide the proper property-changed notifications. 如果您的應用程式需要定期更新目標屬性, 您也可以使用這個方法。You can also use this method if your application needs to update the target properties periodically.

適用於

另請參閱