Поделиться через


OleUndoEngine.Dispose Method

Include Protected Members
Include Inherited Members

Disposes this object.

Overload List

  Name Description
Public method Dispose() Releases all resources used by the UndoEngine. (Inherited from UndoEngine.)
Protected method Dispose(Boolean) Disposes the resources of this object. (Overrides UndoEngine.Dispose(Boolean).)

Top

Remarks

Call Dispose() when you are finished using the OleUndoEngine. The Dispose() method leaves the OleUndoEngine in an unusable state. After calling Dispose(), you must release all references to the OleUndoEngine so the garbage collector can reclaim the memory that the OleUndoEngine was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

Примечание

Always call Dispose() before you release your last reference to the OleUndoEngine. Otherwise, the resources it is using will not be freed until the garbage collector calls the OleUndoEngine object's Finalize method.

See Also

Reference

OleUndoEngine Class

OleUndoEngine Members

Microsoft.VisualStudio.Shell.Design Namespace