ElementPropertyChangedEventArgs Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ElementPropertyChangedEventArgs(IElementDirectory, DomainPropertyInfo, DomainClassInfo, Guid, Object, Object, ChangeSource)
Caution
Use constructor with TransactionContext parameter
Obsolete constructor
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)
Parameters
- directory
- IElementDirectory
The element directory in which the modified ModelElement may be found
- domainProperty
- DomainPropertyInfo
The domain propertywhose instance value changed
- domainClass
- DomainClassInfo
The domain class of the ModelElement whose attribute value changed
- elementId
- Guid
The Id of the ModelElement whose attribute value changed
- oldValue
- Object
The attribute value before the change
- newValue
- Object
The attribute value after the change
- changeSource
- ChangeSource
The source of this change
- Attributes
Applies to
ElementPropertyChangedEventArgs(IElementDirectory, DomainPropertyInfo, DomainClassInfo, Guid, Object, Object, ChangeSource, TransactionContext)
Constructor
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)
Parameters
- directory
- IElementDirectory
The element directory in which the modified ModelElement may be found
- domainProperty
- DomainPropertyInfo
The domain propertywhose instance value changed
- domainClass
- DomainClassInfo
The domain class of the ModelElement whose attribute value changed
- elementId
- Guid
The Id of the ModelElement whose attribute value changed
- oldValue
- Object
The attribute value before the change
- newValue
- Object
The attribute value after the change
- changeSource
- ChangeSource
The source of this change
- transactionContext
- TransactionContext
Context of transaction active when event fired