DomainPropertyValueHandler<TElement,TValue>.ValueChanging 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.
Called by SetValue before the value is changed to perform validation and raise OnValueChanging event.
protected:
void ValueChanging(TElement element, TValue oldValue, TValue newValue);
protected void ValueChanging (TElement element, TValue oldValue, TValue newValue);
member this.ValueChanging : 'Element * 'Value * 'Value -> unit
Protected Sub ValueChanging (element As TElement, oldValue As TValue, newValue As TValue)
Parameters
- element
- TElement
Element which owns the property.
- oldValue
- TValue
Current property value.
- newValue
- TValue
New property value.
Exceptions
element is null.
Operation is invoked outside of modeling transaction scope or there was an attempt to set calculated property.