CalculatedPropertyValueHandler<TElement, TValue> Class

Base class for calculated domain property handlers.

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

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

public abstract class CalculatedPropertyValueHandler<TElement, TValue> : DomainPropertyValueHandler<TElement, TValue>
where TElement : ModelElement

Type Parameters


The CalculatedPropertyValueHandler<TElement, TValue> type exposes the following members.

Protected methodCalculatedPropertyValueHandler<TElement, TValue>Initializes a new instance of the CalculatedPropertyValueHandler<TElement, TValue> class.

Public propertyDomainPropertyIdGets the ID of the domain property supported by this handler. (Inherited from DomainPropertyValueHandler.)

Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetValueGets the value of a domain property for a specified element. (Inherited from DomainPropertyValueHandler<TElement, TValue>.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodNotifyValueChangeAlerts listeners that the calculated value of a domain property has changed.
Protected methodOnValueChangedOccurs after a property value has been changed. (Inherited from DomainPropertyValueHandler<TElement, TValue>.)
Protected methodOnValueChangingAlerts listeners when a property value is about to change. (Inherited from DomainPropertyValueHandler<TElement, TValue>.)
Public methodSetValueSets the value of a domain property for an element. (Overrides DomainPropertyValueHandler<TElement, TValue>.SetValue(TElement, TValue).)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodValueChangedAdds a transaction record and raises the OnValueChanged event. (Inherited from DomainPropertyValueHandler<TElement, TValue>.)
Protected methodValueChangingPerforms validation and raises the OnValueChanging event. (Inherited from DomainPropertyValueHandler<TElement, TValue>.)

Each domain property that has a property value that is calculated has a CalculatedPropertyValueHandler<TElement, TValue>. CalculatedPropertyValueHandler<TElement, TValue> sets the value of the property and fires notifications when the property value changes.

These notifications are received by rules, events, and the OnValueChanging method.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions