OleUndoEngine Constructor
Initializes a new instance of OleUndoEngine.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Public Sub New ( _
provider As IServiceProvider _
)
'Usage
Dim provider As IServiceProvider
Dim instance As New OleUndoEngine(provider)
public OleUndoEngine(
IServiceProvider provider
)
public:
OleUndoEngine(
IServiceProvider^ provider
)
new :
provider:IServiceProvider -> OleUndoEngine
public function OleUndoEngine(
provider : IServiceProvider
)
Parameters
- provider
Type: System.IServiceProvider
A instance of the IServiceProvider interface to be used to obtain system resources by the instance of OleUndoEngine.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown if IServiceProvider does not supply necessary services. |
Remarks
Required 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. |
Optional Services
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. |
.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.
See Also
Reference
Microsoft.VisualStudio.Shell.Design Namespace
OnInterveningUnitBlockingLinkedUndo()