다음을 통해 공유


ParseRequest.Terminate Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

‘선언
Public Property Terminate As Boolean
    Get
    Set
‘사용 방법
Dim instance As ParseRequest
Dim value As Boolean

value = instance.Terminate

instance.Terminate = value
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: System.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

ParseRequest Members

Microsoft.VisualStudio.Package Namespace