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

声明
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
Protected method CalculatedPropertyValueHandler<TElement, TValue> Initializes a new instance of the CalculatedPropertyValueHandler<TElement, TValue> class.

Top

Properties

  Name Description
Public property DomainPropertyId Gets the ID of the domain property supported by this handler. (Inherited from DomainPropertyValueHandler.)

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValue Gets the value of a domain property for a specified element. (Inherited from DomainPropertyValueHandler<TElement, TValue>.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method NotifyValueChange Alerts listeners that the calculated value of a domain property has changed.
Protected method OnValueChanged Occurs after a property value has been changed. (Inherited from DomainPropertyValueHandler<TElement, TValue>.)
Protected method OnValueChanging Alerts listeners when a property value is about to change. (Inherited from DomainPropertyValueHandler<TElement, TValue>.)
Public method SetValue Sets the value of a domain property for an element. (Overrides DomainPropertyValueHandler<TElement, TValue>.SetValue(TElement, TValue).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method ValueChanged Adds a transaction record and raises the OnValueChanged event. (Inherited from DomainPropertyValueHandler<TElement, TValue>.)
Protected method 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.

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace