ImportOptions.EnableDataBinding 屬性

定義

取得或設定一個值,指定生成程式碼中的型別是否應實作該 INotifyPropertyChanged 介面。

public:
 property bool EnableDataBinding { bool get(); void set(bool value); };
public bool EnableDataBinding { get; set; }
member this.EnableDataBinding : bool with get, set
Public Property EnableDataBinding As Boolean

屬性值

true 若產生的程式碼應實作該 INotifyPropertyChanged 介面;否則,則 false。 預設值為 false

備註

此介面由 .NET Framework 元件使用,如 Windows Forms 或 Windows Presentation Foundation,用以擷取使用者介面更新所需的資料變更。 當值改變時,產生的屬性會觸發屬性變更事件,讓 UI 鉤子能相應地運作。

適用於