ElementDeletingEventArgs Конструкторы
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
| ElementDeletingEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource) |
Является устаревшей.
Конструктор |
| ElementDeletingEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource, TransactionContext) |
Конструктор |
ElementDeletingEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource)
Внимание!
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")]
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)
Параметры
- directory
- IElementDirectory
Каталог, в котором может быть найден удаленный элемент ModelElement
- domainClass
- DomainClassInfo
Доменный класс удаленного элемента ModelElement
- elementId
- Guid
Идентификатор удаленного элемента ModelElement
- changeSource
- ChangeSource
Источник этого изменения
- Атрибуты
Применяется к
ElementDeletingEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource, 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);
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)
Параметры
- directory
- IElementDirectory
Каталог, в котором может быть найден удаленный элемент ModelElement
- domainClass
- DomainClassInfo
Доменный класс удаленного элемента ModelElement
- elementId
- Guid
Идентификатор удаленного элемента ModelElement
- changeSource
- ChangeSource
Источник этого изменения
- transactionContext
- TransactionContext
Контекст активной транзакции при появлении события