Partilhar via


LanguageService.Dispose Method

Definition

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.

Applies to