Partilhar via


ElementAddedEventArgs Constructors

Definition

Overloads

ElementAddedEventArgs(IElementDirectory, DomainClassInfo, Guid, PropertyAssignment[], ChangeSource)
Obsolete.

Obsolete constructor

ElementAddedEventArgs(IElementDirectory, DomainClassInfo, Guid, PropertyAssignment[], ChangeSource, TransactionContext)

Constructor

ElementAddedEventArgs(IElementDirectory, DomainClassInfo, Guid, PropertyAssignment[], ChangeSource)

Caution

Use constructor with TransactionContext parameter

Obsolete constructor

public:
 ElementAddedEventArgs(Microsoft::VisualStudio::Modeling::IElementDirectory ^ directory, Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, Guid elementId, cli::array <Microsoft::VisualStudio::Modeling::PropertyAssignment ^> ^ assignments, Microsoft::VisualStudio::Modeling::ChangeSource changeSource);
[System.Obsolete("Use constructor with TransactionContext parameter")]
public ElementAddedEventArgs (Microsoft.VisualStudio.Modeling.IElementDirectory directory, Microsoft.VisualStudio.Modeling.DomainClassInfo domainClass, Guid elementId, Microsoft.VisualStudio.Modeling.PropertyAssignment[] assignments, Microsoft.VisualStudio.Modeling.ChangeSource changeSource);
[<System.Obsolete("Use constructor with TransactionContext parameter")>]
new Microsoft.VisualStudio.Modeling.ElementAddedEventArgs : Microsoft.VisualStudio.Modeling.IElementDirectory * Microsoft.VisualStudio.Modeling.DomainClassInfo * Guid * Microsoft.VisualStudio.Modeling.PropertyAssignment[] * Microsoft.VisualStudio.Modeling.ChangeSource -> Microsoft.VisualStudio.Modeling.ElementAddedEventArgs
Public Sub New (directory As IElementDirectory, domainClass As DomainClassInfo, elementId As Guid, assignments As PropertyAssignment(), changeSource As ChangeSource)

Parameters

directory
IElementDirectory

The directory in which the new ModelElement may be found

domainClass
DomainClassInfo

The domain class of the new ModelElement

elementId
Guid

The Id of the new ModelElement

assignments
PropertyAssignment[]

The attribute assignments for the new model element

changeSource
ChangeSource

Source of the change

Attributes

Applies to

ElementAddedEventArgs(IElementDirectory, DomainClassInfo, Guid, PropertyAssignment[], ChangeSource, TransactionContext)

Constructor

public:
 ElementAddedEventArgs(Microsoft::VisualStudio::Modeling::IElementDirectory ^ directory, Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, Guid elementId, cli::array <Microsoft::VisualStudio::Modeling::PropertyAssignment ^> ^ assignments, Microsoft::VisualStudio::Modeling::ChangeSource changeSource, Microsoft::VisualStudio::Modeling::TransactionContext ^ transactionContext);
public ElementAddedEventArgs (Microsoft.VisualStudio.Modeling.IElementDirectory directory, Microsoft.VisualStudio.Modeling.DomainClassInfo domainClass, Guid elementId, Microsoft.VisualStudio.Modeling.PropertyAssignment[] assignments, Microsoft.VisualStudio.Modeling.ChangeSource changeSource, Microsoft.VisualStudio.Modeling.TransactionContext transactionContext);
new Microsoft.VisualStudio.Modeling.ElementAddedEventArgs : Microsoft.VisualStudio.Modeling.IElementDirectory * Microsoft.VisualStudio.Modeling.DomainClassInfo * Guid * Microsoft.VisualStudio.Modeling.PropertyAssignment[] * Microsoft.VisualStudio.Modeling.ChangeSource * Microsoft.VisualStudio.Modeling.TransactionContext -> Microsoft.VisualStudio.Modeling.ElementAddedEventArgs
Public Sub New (directory As IElementDirectory, domainClass As DomainClassInfo, elementId As Guid, assignments As PropertyAssignment(), changeSource As ChangeSource, transactionContext As TransactionContext)

Parameters

directory
IElementDirectory

The directory in which the new ModelElement may be found

domainClass
DomainClassInfo

The domain class of the new ModelElement

elementId
Guid

The Id of the new ModelElement

assignments
PropertyAssignment[]

The attribute assignments for the new model element

changeSource
ChangeSource

Source of the change

transactionContext
TransactionContext

Context of transaction active when event fired

Applies to