ElementPropertyChangedEventArgs Конструкторы

Определение

Перегрузки

ElementPropertyChangedEventArgs(IElementDirectory, DomainPropertyInfo, DomainClassInfo, Guid, Object, Object, ChangeSource)
Является устаревшей.

Устаревший конструктор.

ElementPropertyChangedEventArgs(IElementDirectory, DomainPropertyInfo, DomainClassInfo, Guid, Object, Object, ChangeSource, TransactionContext)

Конструктор

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

Свойство домена, значение экземпляра которого изменено

domainClass
DomainClassInfo

Доменный класс элемента ModelElement, значение атрибута которого изменилось

elementId
Guid

Идентификатор элемента ModelElement, значение атрибута которого изменилось

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

Свойство домена, значение экземпляра которого изменено

domainClass
DomainClassInfo

Доменный класс элемента ModelElement, значение атрибута которого изменилось

elementId
Guid

Идентификатор элемента ModelElement, значение атрибута которого изменилось

oldValue
Object

Свойство атрибута перед изменением

newValue
Object

Значение атрибута после изменения

changeSource
ChangeSource

Источник этого изменения

transactionContext
TransactionContext

Контекст активной транзакции при появлении события

Применяется к