Compartir a través de


LanguageService.OnCloseSource Method

Called to close the specified Source object.

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

Syntax

'Declaration
Public Overridable Sub OnCloseSource ( _
    source As Source _
)
public virtual void OnCloseSource(
    Source source
)
public:
virtual void OnCloseSource(
    Source^ source
)
abstract OnCloseSource : 
        source:Source -> unit  
override OnCloseSource : 
        source:Source -> unit
public function OnCloseSource(
    source : Source
)

Parameters

Remarks

If you need to do anything special before a Source object is closed then you need to derive a class from the LanguageService class and implement this method. Be sure to call the base class version of this method after you have completed your specific closing tasks.

The base method removes the specified Source object from the internal list and calls Close on the object.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace