UndoManager Constructor (IServiceProvider, IOleUndoManager)
Create a new UndoManager with the specified service provider and IOleUndoManager.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
Public Sub New ( _
serviceProvider As IServiceProvider, _
oleUndoManager As IOleUndoManager _
)
public UndoManager(
IServiceProvider serviceProvider,
IOleUndoManager oleUndoManager
)
public:
UndoManager(
IServiceProvider^ serviceProvider,
IOleUndoManager^ oleUndoManager
)
new :
serviceProvider:IServiceProvider *
oleUndoManager:IOleUndoManager -> UndoManager
public function UndoManager(
serviceProvider : IServiceProvider,
oleUndoManager : IOleUndoManager
)
Parameters
serviceProvider
Type: System.IServiceProviderService provider used to retrieve shell services.
oleUndoManager
Type: Microsoft.VisualStudio.OLE.Interop.IOleUndoManagerAn IOleUndoManager, which should implement IOleCommandTarget and IVsLinkCapableUndoManager. If null, an OleUndoManager will be created.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.