Share via


VsUndoPackageClass Class

Implements the linked undo stack feature.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TextManager.Interop.VsUndoPackageClass

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
<ClassInterfaceAttribute()> _
<GuidAttribute("1D76B2E0-F11B-11D2-AFC3-00105A9991EF")> _
Public Class VsUndoPackageClass _
    Implements IVsLinkedUndoTransactionManager, VsUndoPackage
[ClassInterfaceAttribute()]
[GuidAttribute("1D76B2E0-F11B-11D2-AFC3-00105A9991EF")]
public class VsUndoPackageClass : IVsLinkedUndoTransactionManager, 
    VsUndoPackage
[ClassInterfaceAttribute()]
[GuidAttribute(L"1D76B2E0-F11B-11D2-AFC3-00105A9991EF")]
public ref class VsUndoPackageClass : IVsLinkedUndoTransactionManager, 
    VsUndoPackage
[<ClassInterfaceAttribute()>]
[<GuidAttribute("1D76B2E0-F11B-11D2-AFC3-00105A9991EF")>]
type VsUndoPackageClass =  
    class
        interface IVsLinkedUndoTransactionManager
        interface VsUndoPackage
    end
public class VsUndoPackageClass implements IVsLinkedUndoTransactionManager, VsUndoPackage

The VsUndoPackageClass type exposes the following members.

Constructors

  Name Description
Public method VsUndoPackageClass

Top

Methods

  Name Description
Public method AbortLinkedUndo Aborts a linked undo transaction.
Public method CloseLinkedUndo Successfully closes a linked undo transaction.
Public method CountOpenTransactions Returns the nesting level of the linked undo transactions.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsAborted Determines if the linked undo transaction is aborted.
Public method IsStrict Determines if the linked undo transaction is strict.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OpenLinkedUndo Opens a linked undo transaction parent unit.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

You cannot create an instance of this class with the new keyword. Instead, you must get the ILocalRegistry object and create the object with CreateInstance. The MPF wraps this method with CreateInstance.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace