Sdílet prostřednictvím


UndoManager Constructors

Definition

Overloads

UndoManager(IServiceProvider)

Create a new UndoManager. This CoCreates the shell's undo manager.

UndoManager(IServiceProvider, IOleUndoManager)

Create a new UndoManager with the specified service provider and OLEUndoManager. If the specified OLEUndoManager is null, then a new OLEUndoManager is created and sited with the service provider. If on the other hand an OLEUndoManager is passed in it is assumed that it has already been sited with a service provider. It is required that the supplied undo manager implement IOleCommandTarget. It is expected that it implement IVsLinkCapableUndoManager, if not then linked undo will not be available.

UndoManager(IServiceProvider)

Create a new UndoManager. This CoCreates the shell's undo manager.

public:
 UndoManager(IServiceProvider ^ serviceProvider);
public UndoManager (IServiceProvider serviceProvider);
new Microsoft.VisualStudio.Modeling.Shell.UndoManager : IServiceProvider -> Microsoft.VisualStudio.Modeling.Shell.UndoManager
Public Sub New (serviceProvider As IServiceProvider)

Parameters

serviceProvider
IServiceProvider

service provider used to retrieve shell services.

Applies to

UndoManager(IServiceProvider, IOleUndoManager)

Create a new UndoManager with the specified service provider and OLEUndoManager. If the specified OLEUndoManager is null, then a new OLEUndoManager is created and sited with the service provider. If on the other hand an OLEUndoManager is passed in it is assumed that it has already been sited with a service provider. It is required that the supplied undo manager implement IOleCommandTarget. It is expected that it implement IVsLinkCapableUndoManager, if not then linked undo will not be available.

public:
 UndoManager(IServiceProvider ^ serviceProvider, Microsoft::VisualStudio::OLE::Interop::IOleUndoManager ^ oleUndoManager);
public UndoManager (IServiceProvider serviceProvider, Microsoft.VisualStudio.OLE.Interop.IOleUndoManager oleUndoManager);
new Microsoft.VisualStudio.Modeling.Shell.UndoManager : IServiceProvider * Microsoft.VisualStudio.OLE.Interop.IOleUndoManager -> Microsoft.VisualStudio.Modeling.Shell.UndoManager
Public Sub New (serviceProvider As IServiceProvider, oleUndoManager As IOleUndoManager)

Parameters

serviceProvider
IServiceProvider

service provider used to retrieve shell services.

oleUndoManager
IOleUndoManager

An externally provided OLEUndoManager, or null to have one created.

Applies to