DomainPropertyValueHandler<TElement,TValue> 类

定义

强类型域属性处理程序的基类。

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

类型参数

TElement

拥有属性的元素的类型。

TValue

属性值的类型 () 的属性类型。

继承
Microsoft.VisualStudio.Modeling.DomainPropertyValueHandler
DomainPropertyValueHandler<TElement,TValue>
派生

构造函数

DomainPropertyValueHandler<TElement,TValue>()

创建 DomainPropertyValueHandler 类的实例。

方法

GetValue(TElement)

获取指定元素上的域属性的值。

OnValueChanged(TElement, TValue, TValue)

在属性值更改后调用。

OnValueChanging(TElement, TValue, TValue)

当属性值将要更改时调用。

SetValue(TElement, TValue)

设置指定元素上的域属性值。

ValueChanged(TElement, TValue, TValue)

在将值更改为添加事务记录并引发 OnValueChanged 事件后,由 SetValue 调用。

ValueChanging(TElement, TValue, TValue)

在值更改之前由 SetValue 调用以执行验证并引发 OnValueChanging 事件。

适用于