共用方式為


VsUndoPackageClass Class

Definition

Implements the linked undo stack feature. See IVsLinkedUndoTransactionManager.

public ref class VsUndoPackageClass : Microsoft::VisualStudio::TextManager::Interop::VsUndoPackage
[Windows::Foundation::Metadata::WebHostHidden]
class VsUndoPackageClass : Microsoft::VisualStudio::TextManager::Interop::VsUndoPackage
[System.Runtime.InteropServices.ClassInterface(0)]
[System.Runtime.InteropServices.Guid("1D76B2E0-F11B-11D2-AFC3-00105A9991EF")]
[System.Runtime.InteropServices.TypeLibType(2)]
public class VsUndoPackageClass : Microsoft.VisualStudio.TextManager.Interop.VsUndoPackage
[System.Runtime.InteropServices.Guid("1D76B2E0-F11B-11D2-AFC3-00105A9991EF")]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
public class VsUndoPackageClass : Microsoft.VisualStudio.TextManager.Interop.VsUndoPackage
[<System.Runtime.InteropServices.ClassInterface(0)>]
[<System.Runtime.InteropServices.Guid("1D76B2E0-F11B-11D2-AFC3-00105A9991EF")>]
[<System.Runtime.InteropServices.TypeLibType(2)>]
type VsUndoPackageClass = class
    interface IVsLinkedUndoTransactionManager
    interface VsUndoPackage
[<System.Runtime.InteropServices.Guid("1D76B2E0-F11B-11D2-AFC3-00105A9991EF")>]
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
type VsUndoPackageClass = class
    interface VsUndoPackage
    interface IVsLinkedUndoTransactionManager
Public Class VsUndoPackageClass
Implements VsUndoPackage
Inheritance
VsUndoPackageClass
Attributes
Implements

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.

Constructors

VsUndoPackageClass()

Creates a new instance of the class.

Methods

AbortLinkedUndo()

Aborts a linked undo transaction.

CloseLinkedUndo()

Successfully closes a linked undo transaction.

CountOpenTransactions(Int32)

Returns the nesting level of the linked undo transactions.

IsAborted(Int32)

Determines if the linked undo transaction is aborted.

IsStrict(Int32)

Determines if the linked undo transaction is strict.

OpenLinkedUndo(UInt32, String)

Opens a linked undo transaction parent unit.

Applies to