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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣告
Public Overridable Sub OnCloseSource ( _
source As Source _
)
public virtual void OnCloseSource(
Source source
)
Parameters
- source
Type: Microsoft.VisualStudio.Package.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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.