CalculatedPropertyValueHandler<TElement, TValue> Class
Base class for calculated domain property handlers.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.DomainPropertyValueHandler
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)
Syntax
'Declaration
Public MustInherit Class CalculatedPropertyValueHandler(Of TElement As ModelElement, TValue) _
Inherits DomainPropertyValueHandler(Of TElement, TValue)
public abstract class CalculatedPropertyValueHandler<TElement, TValue> : DomainPropertyValueHandler<TElement, TValue>
where TElement : ModelElement
generic<typename TElement, typename TValue>
where TElement : ModelElement
public ref class CalculatedPropertyValueHandler abstract : public DomainPropertyValueHandler<TElement, TValue>
[<AbstractClass>]
type CalculatedPropertyValueHandler<'TElement, 'TValue when 'TElement : ModelElement> =
class
inherit DomainPropertyValueHandler<'TElement, 'TValue>
end
JScript does not support generic types or methods.
Type Parameters
- TElement
- TValue
The CalculatedPropertyValueHandler<TElement, TValue> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CalculatedPropertyValueHandler<TElement, TValue> | Initializes a new instance of the CalculatedPropertyValueHandler<TElement, TValue> class. |
Top
Properties
Name | Description | |
---|---|---|
DomainPropertyId | Gets the ID of the domain property supported by this handler. (Inherited from DomainPropertyValueHandler.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue | Gets the value of a domain property for a specified element. (Inherited from DomainPropertyValueHandler<TElement, TValue>.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NotifyValueChange | Alerts listeners that the calculated value of a domain property has changed. | |
OnValueChanged | Occurs after a property value has been changed. (Inherited from DomainPropertyValueHandler<TElement, TValue>.) | |
OnValueChanging | Alerts listeners when a property value is about to change. (Inherited from DomainPropertyValueHandler<TElement, TValue>.) | |
SetValue | Sets the value of a domain property for an element. (Overrides DomainPropertyValueHandler<TElement, TValue>.SetValue(TElement, TValue).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
ValueChanged | Adds a transaction record and raises the OnValueChanged event. (Inherited from DomainPropertyValueHandler<TElement, TValue>.) | |
ValueChanging | Performs validation and raises the OnValueChanging event. (Inherited from DomainPropertyValueHandler<TElement, TValue>.) |
Top
Remarks
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.