Method OnValueChanging
| Edit this page View SourceOnValueChanging(object?, object?)
Called when an attribute value is about to change.
Declaration
protected void OnValueChanging(object? oldValue, object? newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| object | oldValue | The old attribute value. |
| object | newValue | The new updated attribute value. |
Remarks
To trigger a validation exception, throw an exception in this method.