Occurs after a property value has been changed.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Protected Overridable Sub OnValueChanged ( _
element As TElement, _
oldValue As TValue, _
newValue As TValue _
)
'使用
Dim element As TElement
Dim oldValue As TValue
Dim newValue As TValue
Me.OnValueChanged(element, oldValue, _
newValue)
protected virtual void OnValueChanged(
TElement element,
TValue oldValue,
TValue newValue
)
protected:
virtual void OnValueChanged(
TElement element,
TValue oldValue,
TValue newValue
)
protected function OnValueChanged(
element : TElement,
oldValue : TValue,
newValue : TValue
)
Parameters
element
Type: TElementThe element.
oldValue
Type: TValueThe current value of the property.
newValue
Type: TValueThe new value of the property.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Concepts
How to: Override Methods that Run when a Notification Occurs
Reference
DomainPropertyValueHandler<TElement, TValue> Class