ElementDeletedEventArgs Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ElementDeletedEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource)
Caution
Use constructor with TransactionContext parameter
Obsolete constructor
public:
ElementDeletedEventArgs(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 ElementDeletedEventArgs (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.ElementDeletedEventArgs : Microsoft.VisualStudio.Modeling.IElementDirectory * Microsoft.VisualStudio.Modeling.DomainClassInfo * Guid * Microsoft.VisualStudio.Modeling.ChangeSource -> Microsoft.VisualStudio.Modeling.ElementDeletedEventArgs
Public Sub New (directory As IElementDirectory, domainClass As DomainClassInfo, elementId As Guid, changeSource As ChangeSource)
Parameters
- directory
- IElementDirectory
The directory in which the deleted ModelElement may be found
- domainClass
- DomainClassInfo
The domain class of the deleted ModelElement
- elementId
- Guid
The Id of the deleted ModelElement
- changeSource
- ChangeSource
The source of this change
- Attributes
Applies to
ElementDeletedEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource, TransactionContext)
Constructor
public:
ElementDeletedEventArgs(Microsoft::VisualStudio::Modeling::IElementDirectory ^ directory, Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, Guid elementId, Microsoft::VisualStudio::Modeling::ChangeSource changeSource, Microsoft::VisualStudio::Modeling::TransactionContext ^ transactionContext);
public ElementDeletedEventArgs (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.ElementDeletedEventArgs : Microsoft.VisualStudio.Modeling.IElementDirectory * Microsoft.VisualStudio.Modeling.DomainClassInfo * Guid * Microsoft.VisualStudio.Modeling.ChangeSource * Microsoft.VisualStudio.Modeling.TransactionContext -> Microsoft.VisualStudio.Modeling.ElementDeletedEventArgs
Public Sub New (directory As IElementDirectory, domainClass As DomainClassInfo, elementId As Guid, changeSource As ChangeSource, transactionContext As TransactionContext)
Parameters
- directory
- IElementDirectory
The directory in which the deleted ModelElement may be found
- domainClass
- DomainClassInfo
The domain class of the deleted ModelElement
- elementId
- Guid
The Id of the deleted ModelElement
- changeSource
- ChangeSource
The source of this change
- transactionContext
- TransactionContext
Context of transaction active when event fired