다음을 통해 공유


DomainPropertyValueHandler<TElement,TValue> Class

Definition

Base class for strongly-typed domain property handlers.

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

Type Parameters

TElement

Type of element which owns the property.

TValue

Type of property value (property type).

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

Constructors

DomainPropertyValueHandler<TElement,TValue>()

Creates an instance of the DomainPropertyValueHandler class.

Methods

GetValue(TElement)

Gets value of domain property on specified element.

OnValueChanged(TElement, TValue, TValue)

Called after property value has been changed.

OnValueChanging(TElement, TValue, TValue)

Called when property value is about to change.

SetValue(TElement, TValue)

Sets domain property value on specified element.

ValueChanged(TElement, TValue, TValue)

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

ValueChanging(TElement, TValue, TValue)

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

Applies to