LanguageService.Dispose Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Cleanup the sources, uiShell, shell, preferences and imageList objects and unregister this language service with VS.
public:
virtual void Dispose();
public:
virtual void Dispose();
virtual void Dispose();
public virtual void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Overridable Sub Dispose ()
Implements
Remarks
This method provides an opportunity to clean up any memory and resource allocations the language service may have made. If your language service has made allocations of resources beyond the needs of the base class, you must derive a class from the LanguageService class and implement this method on your class.
The base method must always be called from a derived method after you have disposed of any of your own resources.