Sdílet prostřednictvím


LanguageService.CanStopThread(Source) Method

Definition

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.

Applies to