LanguageService.CanStopThread(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.
Determines whether the thread can be stopped.
public:
virtual bool CanStopThread(Microsoft::VisualStudio::Package::Source ^ src);
public virtual bool CanStopThread (Microsoft.VisualStudio.Package.Source src);
abstract member CanStopThread : Microsoft.VisualStudio.Package.Source -> bool
override this.CanStopThread : Microsoft.VisualStudio.Package.Source -> bool
Public Overridable Function CanStopThread (src As Source) As Boolean
Parameters
- src
- Source
The source.
Returns
Always true
unless overridden.
Remarks
Aborting the thread is rather drastic, since the parse tree may still be used even after the source is closed, so aborting the thread messes with this concept. This new virtual method allows a language service to override this behavior.