ModelingDocStore.CreateUndoUnit Method

Creates an instance of the UndoUnit class, which enables transactions to be undone in the store.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntax

'Declaration
Protected Overridable Function CreateUndoUnit ( _
    undoableTransaction As TransactionItem _
) As UndoUnit
protected virtual UndoUnit CreateUndoUnit(
    TransactionItem undoableTransaction
)
protected:
virtual UndoUnit^ CreateUndoUnit(
    TransactionItem^ undoableTransaction
)
abstract CreateUndoUnit : 
        undoableTransaction:TransactionItem -> UndoUnit  
override CreateUndoUnit : 
        undoableTransaction:TransactionItem -> UndoUnit
protected function CreateUndoUnit(
    undoableTransaction : TransactionItem
) : UndoUnit

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Shell.UndoUnit
The UndoUnit for the store.

Remarks

The UndoUnit is a wrapper for modeling transactions. After a modeling transaction is wrapped, the shell's IOleUndoManager interface can use it.

.NET Framework Security

See Also

Reference

ModelingDocStore Class

Microsoft.VisualStudio.Modeling.Shell Namespace