Compartir a través de


LanguageService.OnCloseSource Method

Called to close the specified Source object.

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

Syntax

Public Overridable Sub OnCloseSource ( _
    source As Source _
)

Dim instance As LanguageService
Dim source As Source

instance.OnCloseSource(source)
public virtual void OnCloseSource(
    Source source
)
public:
virtual void OnCloseSource(
    Source^ source
)
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.

Permissions

See Also

Reference

LanguageService Class

LanguageService Members

Microsoft.VisualStudio.Package Namespace