ElementAddedEventArgs 构造函数

定义

重载

ElementAddedEventArgs(IElementDirectory, DomainClassInfo, Guid, PropertyAssignment[], ChangeSource)
已过时。

过时构造函数

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

构造函数

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

注意

Use constructor with TransactionContext parameter

过时构造函数

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)

参数

directory
IElementDirectory

可在其中找到新 ModelElement 的目录

domainClass
DomainClassInfo

新 ModelElement 的域类

elementId
Guid

新 ModelElement 的 Id

assignments
PropertyAssignment[]

新模型元素的属性分配

changeSource
ChangeSource

更改的源

属性

适用于

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

构造函数

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)

参数

directory
IElementDirectory

可在其中找到新 ModelElement 的目录

domainClass
DomainClassInfo

新 ModelElement 的域类

elementId
Guid

新 ModelElement 的 Id

assignments
PropertyAssignment[]

新模型元素的属性分配

changeSource
ChangeSource

更改的源

transactionContext
TransactionContext

触发事件时活动的事务上下文

适用于