Compartir a través de


LanguageService.OnCloseSource(Source) Method

Definition

Called to close the specified Source object.

public:
 virtual void OnCloseSource(Microsoft::VisualStudio::Package::Source ^ source);
public virtual void OnCloseSource (Microsoft.VisualStudio.Package.Source source);
abstract member OnCloseSource : Microsoft.VisualStudio.Package.Source -> unit
override this.OnCloseSource : Microsoft.VisualStudio.Package.Source -> unit
Public Overridable Sub OnCloseSource (source As Source)

Parameters

source
Source

[in] The Source object to be closed.

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.

Applies to