UndoUnit Конструкторы
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
| UndoUnit(IServiceProvider, Context, TransactionCommitHandler) |
Создает блок отмены transaction без транзакции, но с делегатом, который он может использовать для получения транзакцию позже, при необходимости. |
| UndoUnit(IServiceProvider, Context, TransactionItem) |
Создает новый элемент отмены. |
| UndoUnit(IServiceProvider, Context, TransactionCommitHandler, DescriptionHandler) |
Создает блок отмены transaction без транзакции, но с делегатом, который он может использовать для получения транзакцию позже, при необходимости. Также определяет делегат, который можно использовать для получения описания данного действия, чтобы избежать фиксации. |
UndoUnit(IServiceProvider, Context, TransactionCommitHandler)
Создает блок отмены transaction без транзакции, но с делегатом, который он может использовать для получения транзакцию позже, при необходимости.
public:
UndoUnit(IServiceProvider ^ serviceProvider, Microsoft::VisualStudio::Modeling::Context ^ context, Microsoft::VisualStudio::Modeling::Shell::TransactionCommitHandler ^ commitHandler);
public UndoUnit (IServiceProvider serviceProvider, Microsoft.VisualStudio.Modeling.Context context, Microsoft.VisualStudio.Modeling.Shell.TransactionCommitHandler commitHandler);
new Microsoft.VisualStudio.Modeling.Shell.UndoUnit : IServiceProvider * Microsoft.VisualStudio.Modeling.Context * Microsoft.VisualStudio.Modeling.Shell.TransactionCommitHandler -> Microsoft.VisualStudio.Modeling.Shell.UndoUnit
Public Sub New (serviceProvider As IServiceProvider, context As Context, commitHandler As TransactionCommitHandler)
Параметры
- serviceProvider
- IServiceProvider
- context
- Context
- commitHandler
- TransactionCommitHandler
Применяется к
UndoUnit(IServiceProvider, Context, TransactionItem)
Создает новый элемент отмены.
public:
UndoUnit(IServiceProvider ^ serviceProvider, Microsoft::VisualStudio::Modeling::Context ^ context, Microsoft::VisualStudio::Modeling::TransactionItem ^ transactionItem);
public UndoUnit (IServiceProvider serviceProvider, Microsoft.VisualStudio.Modeling.Context context, Microsoft.VisualStudio.Modeling.TransactionItem transactionItem);
new Microsoft.VisualStudio.Modeling.Shell.UndoUnit : IServiceProvider * Microsoft.VisualStudio.Modeling.Context * Microsoft.VisualStudio.Modeling.TransactionItem -> Microsoft.VisualStudio.Modeling.Shell.UndoUnit
Public Sub New (serviceProvider As IServiceProvider, context As Context, transactionItem As TransactionItem)
Параметры
- serviceProvider
- IServiceProvider
- context
- Context
- transactionItem
- TransactionItem
Объект transactionItem для упаковки в оболочку.
Применяется к
UndoUnit(IServiceProvider, Context, TransactionCommitHandler, DescriptionHandler)
Создает блок отмены transaction без транзакции, но с делегатом, который он может использовать для получения транзакцию позже, при необходимости. Также определяет делегат, который можно использовать для получения описания данного действия, чтобы избежать фиксации.
public:
UndoUnit(IServiceProvider ^ serviceProvider, Microsoft::VisualStudio::Modeling::Context ^ context, Microsoft::VisualStudio::Modeling::Shell::TransactionCommitHandler ^ commitHandler, Microsoft::VisualStudio::Modeling::Shell::DescriptionHandler ^ descriptionHandler);
public UndoUnit (IServiceProvider serviceProvider, Microsoft.VisualStudio.Modeling.Context context, Microsoft.VisualStudio.Modeling.Shell.TransactionCommitHandler commitHandler, Microsoft.VisualStudio.Modeling.Shell.DescriptionHandler descriptionHandler);
new Microsoft.VisualStudio.Modeling.Shell.UndoUnit : IServiceProvider * Microsoft.VisualStudio.Modeling.Context * Microsoft.VisualStudio.Modeling.Shell.TransactionCommitHandler * Microsoft.VisualStudio.Modeling.Shell.DescriptionHandler -> Microsoft.VisualStudio.Modeling.Shell.UndoUnit
Public Sub New (serviceProvider As IServiceProvider, context As Context, commitHandler As TransactionCommitHandler, descriptionHandler As DescriptionHandler)
Параметры
- serviceProvider
- IServiceProvider
- context
- Context
- commitHandler
- TransactionCommitHandler
- descriptionHandler
- DescriptionHandler