共用方式為


ParseRequest.Terminate Property

Specifies whether the worker thread handling background parsing operations should exit.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.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 Property Terminate As Boolean
public bool Terminate { get; set; }
public:
property bool Terminate {
    bool get ();
    void set (bool value);
}
member Terminate : bool with get, set
function get Terminate () : boolean 
function set Terminate (value : boolean)

Property Value

Type: Boolean
Returns true if the worker thread should exit.

Remarks

A lengthy parsing operation is typically executed on a background thread. This background thread is implemented by the base LanguageService class and the thread watches for a ParseRequest that returns true for the Terminate property. When such a ParseRequest object appears, the worker thread exits. However, this worker thread exits only if no parsing operation is currently executing.

.NET Framework Security

See Also

Reference

ParseRequest Class

Microsoft.VisualStudio.Package Namespace