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 (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
)
abstract OnCloseSource :
source:Source -> unit
override OnCloseSource :
source:Source -> unit
public function 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.