LanguageService.OnCloseSource(Source) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.