Share via


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

属性值

如果生成的代码应实现 INotifyPropertyChanged 接口,则为 true;否则为 false。 默认值为 false

注解

此接口由.NET Framework组件(如 Windows 窗体 或 Windows Presentation Foundation)用于捕获用户界面更新的数据更改。 当值发生更改时,生成的属性会引发属性更改事件,从而使 UI 挂钩可以采取相应行动。

适用于