Freigeben über


DomainPropertyValueHandler<TElement,TValue>.ValueChanging Method

Definition

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.

Applies to