ElementPropertyChangedEventArgs 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ElementPropertyChangedEventArgs(IElementDirectory, DomainPropertyInfo, DomainClassInfo, Guid, Object, Object, ChangeSource)
注意
Use constructor with TransactionContext parameter
过时构造函数
public:
ElementPropertyChangedEventArgs(Microsoft::VisualStudio::Modeling::IElementDirectory ^ directory, Microsoft::VisualStudio::Modeling::DomainPropertyInfo ^ domainProperty, Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, Guid elementId, System::Object ^ oldValue, System::Object ^ newValue, Microsoft::VisualStudio::Modeling::ChangeSource changeSource);
[System.Obsolete("Use constructor with TransactionContext parameter")]
public ElementPropertyChangedEventArgs (Microsoft.VisualStudio.Modeling.IElementDirectory directory, Microsoft.VisualStudio.Modeling.DomainPropertyInfo domainProperty, Microsoft.VisualStudio.Modeling.DomainClassInfo domainClass, Guid elementId, object oldValue, object newValue, Microsoft.VisualStudio.Modeling.ChangeSource changeSource);
[<System.Obsolete("Use constructor with TransactionContext parameter")>]
new Microsoft.VisualStudio.Modeling.ElementPropertyChangedEventArgs : Microsoft.VisualStudio.Modeling.IElementDirectory * Microsoft.VisualStudio.Modeling.DomainPropertyInfo * Microsoft.VisualStudio.Modeling.DomainClassInfo * Guid * obj * obj * Microsoft.VisualStudio.Modeling.ChangeSource -> Microsoft.VisualStudio.Modeling.ElementPropertyChangedEventArgs
Public Sub New (directory As IElementDirectory, domainProperty As DomainPropertyInfo, domainClass As DomainClassInfo, elementId As Guid, oldValue As Object, newValue As Object, changeSource As ChangeSource)
参数
- directory
- IElementDirectory
可在其中找到修改后的 ModelElement 的元素目录
- domainProperty
- DomainPropertyInfo
域 propertywhose 实例值已更改
- domainClass
- DomainClassInfo
其属性值已更改的 ModelElement 的域类
- elementId
- Guid
其属性值已更改的 ModelElement 的 Id
- oldValue
- Object
更改前的属性值
- newValue
- Object
更改后的特性值
- changeSource
- ChangeSource
此更改的源
- 属性
适用于
ElementPropertyChangedEventArgs(IElementDirectory, DomainPropertyInfo, DomainClassInfo, Guid, Object, Object, ChangeSource, TransactionContext)
构造函数
public:
ElementPropertyChangedEventArgs(Microsoft::VisualStudio::Modeling::IElementDirectory ^ directory, Microsoft::VisualStudio::Modeling::DomainPropertyInfo ^ domainProperty, Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, Guid elementId, System::Object ^ oldValue, System::Object ^ newValue, Microsoft::VisualStudio::Modeling::ChangeSource changeSource, Microsoft::VisualStudio::Modeling::TransactionContext ^ transactionContext);
public ElementPropertyChangedEventArgs (Microsoft.VisualStudio.Modeling.IElementDirectory directory, Microsoft.VisualStudio.Modeling.DomainPropertyInfo domainProperty, Microsoft.VisualStudio.Modeling.DomainClassInfo domainClass, Guid elementId, object oldValue, object newValue, Microsoft.VisualStudio.Modeling.ChangeSource changeSource, Microsoft.VisualStudio.Modeling.TransactionContext transactionContext);
new Microsoft.VisualStudio.Modeling.ElementPropertyChangedEventArgs : Microsoft.VisualStudio.Modeling.IElementDirectory * Microsoft.VisualStudio.Modeling.DomainPropertyInfo * Microsoft.VisualStudio.Modeling.DomainClassInfo * Guid * obj * obj * Microsoft.VisualStudio.Modeling.ChangeSource * Microsoft.VisualStudio.Modeling.TransactionContext -> Microsoft.VisualStudio.Modeling.ElementPropertyChangedEventArgs
Public Sub New (directory As IElementDirectory, domainProperty As DomainPropertyInfo, domainClass As DomainClassInfo, elementId As Guid, oldValue As Object, newValue As Object, changeSource As ChangeSource, transactionContext As TransactionContext)
参数
- directory
- IElementDirectory
可在其中找到修改后的 ModelElement 的元素目录
- domainProperty
- DomainPropertyInfo
域 propertywhose 实例值已更改
- domainClass
- DomainClassInfo
其属性值已更改的 ModelElement 的域类
- elementId
- Guid
其属性值已更改的 ModelElement 的 Id
- oldValue
- Object
更改前的属性值
- newValue
- Object
更改后的特性值
- changeSource
- ChangeSource
此更改的源
- transactionContext
- TransactionContext
触发事件时活动的事务上下文