ElementDeletingEventArgs 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
ElementDeletingEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource)
Caution
Use constructor with TransactionContext parameter
Constructor
public:
ElementDeletingEventArgs(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 ElementDeletingEventArgs (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.ElementDeletingEventArgs : Microsoft.VisualStudio.Modeling.IElementDirectory * Microsoft.VisualStudio.Modeling.DomainClassInfo * Guid * Microsoft.VisualStudio.Modeling.ChangeSource -> Microsoft.VisualStudio.Modeling.ElementDeletingEventArgs
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
ElementDeletingEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource, TransactionContext)
Constructor
public:
ElementDeletingEventArgs(Microsoft::VisualStudio::Modeling::IElementDirectory ^ directory, Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, Guid elementId, Microsoft::VisualStudio::Modeling::ChangeSource changeSource, Microsoft::VisualStudio::Modeling::TransactionContext ^ transactionContext);
public ElementDeletingEventArgs (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.ElementDeletingEventArgs : Microsoft.VisualStudio.Modeling.IElementDirectory * Microsoft.VisualStudio.Modeling.DomainClassInfo * Guid * Microsoft.VisualStudio.Modeling.ChangeSource * Microsoft.VisualStudio.Modeling.TransactionContext -> Microsoft.VisualStudio.Modeling.ElementDeletingEventArgs
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