SourceSwitch.OnValueChanged 方法
定义
protected:
override void OnValueChanged();
protected override void OnValueChanged ();
override this.OnValueChanged : unit -> unit
Protected Overrides Sub OnValueChanged ()
例外
Value 的新值不是 SourceLevels 值之一。The new value of Value is not one of the SourceLevels values.
注解
OnValueChanged方法将属性的新值转换 Value 为枚举中的匹配字段的整数表示形式 SourceLevels ,然后使用此整数设置 SwitchSetting 属性。The OnValueChanged method converts the new value of the Value property to the integer representation of the matching field in the SourceLevels enumeration, and then uses this integer to set the SwitchSetting property.