Share via


LanguageService.Dispose Method

Called when the language service object is being destroyed.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Sub Dispose
public virtual void Dispose()
public:
virtual void Dispose()
abstract Dispose : unit -> unit  
override Dispose : unit -> unit
public function Dispose()

Implements

IDisposable.Dispose()

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.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace