Udostępnij za pośrednictwem


ElementEventArgs Constructors

Definition

Overloads

ElementEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource)
Obsolete.

Obsolete constructor

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

Constructor

ElementEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource)

Caution

Use constructor with TransactionContext parameter

Obsolete constructor

public:
 ElementEventArgs(Microsoft::VisualStudio::Modeling::IElementDirectory ^ directory, Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, Guid elementId, Microsoft::VisualStudio::Modeling::ChangeSource changeSource);
[System.Obsolete("Use constructor with TransactionContext parameter")]
public ElementEventArgs (Microsoft.VisualStudio.Modeling.IElementDirectory directory, Microsoft.VisualStudio.Modeling.DomainClassInfo domainClass, Guid elementId, Microsoft.VisualStudio.Modeling.ChangeSource changeSource);
[<System.Obsolete("Use constructor with TransactionContext parameter")>]
new Microsoft.VisualStudio.Modeling.ElementEventArgs : Microsoft.VisualStudio.Modeling.IElementDirectory * Microsoft.VisualStudio.Modeling.DomainClassInfo * Guid * Microsoft.VisualStudio.Modeling.ChangeSource -> Microsoft.VisualStudio.Modeling.ElementEventArgs
Public Sub New (directory As IElementDirectory, domainClass As DomainClassInfo, elementId As Guid, changeSource As 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

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

Constructor

public:
 ElementEventArgs(Microsoft::VisualStudio::Modeling::IElementDirectory ^ directory, Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, Guid elementId, Microsoft::VisualStudio::Modeling::ChangeSource changeSource, Microsoft::VisualStudio::Modeling::TransactionContext ^ transactionContext);
public ElementEventArgs (Microsoft.VisualStudio.Modeling.IElementDirectory directory, Microsoft.VisualStudio.Modeling.DomainClassInfo domainClass, Guid elementId, Microsoft.VisualStudio.Modeling.ChangeSource changeSource, Microsoft.VisualStudio.Modeling.TransactionContext transactionContext);
new Microsoft.VisualStudio.Modeling.ElementEventArgs : Microsoft.VisualStudio.Modeling.IElementDirectory * Microsoft.VisualStudio.Modeling.DomainClassInfo * Guid * Microsoft.VisualStudio.Modeling.ChangeSource * Microsoft.VisualStudio.Modeling.TransactionContext -> Microsoft.VisualStudio.Modeling.ElementEventArgs
Public Sub New (directory As IElementDirectory, domainClass As DomainClassInfo, elementId As Guid, changeSource As ChangeSource, transactionContext As 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