OleUndoEngine Constructor (IServiceProvider^)
Initializes a new instance of OleUndoEngine.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Parameters
- provider
-
Type:
System::IServiceProvider^
A instance of the IServiceProvider interface to be used to obtain system resources by the instance of OleUndoEngine.
| Exception | Condition |
|---|---|
| InvalidOperationException | Thrown if IServiceProvider does not supply necessary services. |
These services are required for OleUndoEngine to function. The object will throw an InvalidOperationException object if any of these services do not exist.
Provides the undo stack. | |
Required by the underlying UndoEngineclass to perform undo stack serialization. | |
Required to implement any designer | |
Provides component change tracking. |
These services are not required, but if they are present OleUndoEngine will make use of them.
This interface is queried from IOleUndoManager and if present, OleUndoEnginewill enable linking of undo units across documents. | |
Managed undo units across linked documents. | |
Used if needed in handling linked documents to surface the current document if it is blocking another document from being save. |
UndoEngine::UndoUnit
OleUndoEngine
M:Microsoft.VisualStudio.Shell.Design.OleUndoEngine.Microsoft.VisualStudio.TextManager.Interop.IVsLinkedUndoClient.OnInterveningUnitBlockingLinkedUndo
AddUndoUnit
CreateUndoUnit
DiscardUndoUnit
Dispose
Microsoft.VisualStudio.Shell.Design Namespace
Supplying Undo Support to Designers