Udostępnij za pośrednictwem


LanguageService.Dispose Method

Called when the language service object is being destroyed.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Sub Dispose
'Usage
Dim instance As LanguageService

instance.Dispose()
public virtual void Dispose()
public:
virtual void Dispose()
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

LanguageService Members

Microsoft.VisualStudio.Package Namespace