次の方法で共有


CalculatedPropertyValueHandler<TElement,TValue> Class

Definition

Base class for calculated domain property handlers.

generic <typename TElement, typename TValue>
 where TElement : ModelElementpublic ref class CalculatedPropertyValueHandler abstract : Microsoft::VisualStudio::Modeling::DomainPropertyValueHandler<TElement, TValue>
public abstract class CalculatedPropertyValueHandler<TElement,TValue> : Microsoft.VisualStudio.Modeling.DomainPropertyValueHandler<TElement,TValue> where TElement : ModelElement
type CalculatedPropertyValueHandler<'Element, 'Value (requires 'Element :> ModelElement)> = class
    inherit DomainPropertyValueHandler<'Element, 'Value (requires 'Element :> ModelElement)>
Public MustInherit Class CalculatedPropertyValueHandler(Of TElement, TValue)
Inherits DomainPropertyValueHandler(Of TElement, TValue)

Type Parameters

TElement

Type of element which owns the property.

TValue

Type of property value (property type).

Inheritance
Microsoft.VisualStudio.Modeling.DomainPropertyValueHandler
CalculatedPropertyValueHandler<TElement,TValue>

Constructors

CalculatedPropertyValueHandler<TElement,TValue>()

Creates a new instance of the CalculatedPropertyValueHandler class.

Methods

GetValue(TElement)

Gets value of domain property on specified element.

(Inherited from DomainPropertyValueHandler<TElement,TValue>)
NotifyValueChange(TElement)

Fire notifications (rules, events and OnValueChanging) to indicate a change in the calculated value.

OnValueChanged(TElement, TValue, TValue)

Called after property value has been changed.

(Inherited from DomainPropertyValueHandler<TElement,TValue>)
OnValueChanging(TElement, TValue, TValue)

Called when property value is about to change.

(Inherited from DomainPropertyValueHandler<TElement,TValue>)
SetValue(TElement, TValue)

Sets property value on an element.

ValueChanged(TElement, TValue, TValue)

Called by SetValue after the value has been changed to add transaction record and raise OnValueChanged event.

(Inherited from DomainPropertyValueHandler<TElement,TValue>)
ValueChanging(TElement, TValue, TValue)

Called by SetValue before the value is changed to perform validation and raise OnValueChanging event.

(Inherited from DomainPropertyValueHandler<TElement,TValue>)

Applies to