Compartir a través de


LanguageService.CanStopThread Method

Determines whether the thread can be stopped.

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.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

'Declaration
Public Overridable Function CanStopThread ( _
    src As Source _
) As Boolean
public virtual bool CanStopThread(
    Source src
)
public:
virtual bool CanStopThread(
    Source^ src
)
abstract CanStopThread : 
        src:Source -> bool  
override CanStopThread : 
        src:Source -> bool
public function CanStopThread(
    src : Source
) : boolean

Parameters

Return Value

Type: Boolean
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.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace