Switch.OnValueChanged 方法
定义
protected:
virtual void OnValueChanged();
protected virtual void OnValueChanged ();
abstract member OnValueChanged : unit -> unit
override this.OnValueChanged : unit -> unit
Protected Overridable Sub OnValueChanged ()
注解
默认实现将属性的新值分析 Value 为一个整数值,该值将用于设置 SwitchSetting 属性。The default implementation parses the new value of the Value property to an integer value which it uses to set the SwitchSetting property.
继承者说明
你应重写此方法,并使用为你的开关设置适当值的转换 SwitchSetting 。You should override this method and use a conversion that sets the appropriate SwitchSetting value for your switch.