LanguageService::CanStopThread Method (Source^)

 

Determines whether the thread can be stopped.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual bool CanStopThread(
	Source^ src
)

Parameters

src
Type: Microsoft.VisualStudio.Package::Source^

The source.

Return Value

Type: System::Boolean

Always true unless overridden.

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.

Return to top
Show: