다음을 통해 공유


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 (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

‘선언
Public Overridable Sub Dispose
‘사용 방법
Dim instance As LanguageService

instance.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

LanguageService Members

Microsoft.VisualStudio.Package Namespace