ElementEventArgs Constructors

Definition

Overloads

ElementEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource)

Caution

Use constructor with TransactionContext parameter

Obsolete constructor

C++
public:
 ElementEventArgs(Microsoft::VisualStudio::Modeling::IElementDirectory ^ directory, Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, Guid elementId, Microsoft::VisualStudio::Modeling::ChangeSource changeSource);

Parameters

directory
IElementDirectory

The element directory used to look up the subject ModelElement

domainClass
DomainClassInfo

The domain class of the subject ModelElement

elementId
Guid

The Id of the subject ModelElement

changeSource
ChangeSource

The source of the change that triggered firing this notification

Attributes

Applies to

Visual Studio SDK 2022 an aner Versiounen
Produkt Versiounen (Obsolet)
Visual Studio SDK (2017, 2019, 2022)

ElementEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource, TransactionContext)

Constructor

C++
public:
 ElementEventArgs(Microsoft::VisualStudio::Modeling::IElementDirectory ^ directory, Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, Guid elementId, Microsoft::VisualStudio::Modeling::ChangeSource changeSource, Microsoft::VisualStudio::Modeling::TransactionContext ^ transactionContext);

Parameters

directory
IElementDirectory

The element directory used to look up the subject ModelElement

domainClass
DomainClassInfo

The domain class of the subject ModelElement

elementId
Guid

The Id of the subject ModelElement

changeSource
ChangeSource

The source of the change that triggered firing this notification

transactionContext
TransactionContext

Context of transaction active when event fired

Applies to

Visual Studio SDK 2022 an aner Versiounen
Produkt Versiounen
Visual Studio SDK 2017, 2019, 2022