Switch.OnValueChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Invoked when the Value property is changed.
protected:
virtual void OnValueChanged();
protected virtual void OnValueChanged ();
abstract member OnValueChanged : unit -> unit
override this.OnValueChanged : unit -> unit
Protected Overridable Sub OnValueChanged ()
Remarks
The default implementation parses the new value of the Value property to an integer value which it uses to set the SwitchSetting property.
Notes to Inheritors
You should override this method and use a conversion that sets the appropriate SwitchSetting value for your switch.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.