ParseRequest Constructor (Boolean)
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Initializes a new instance of the ParseRequest class in order to terminate the thread used for background parsing operations.
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 Sub New ( _
terminate As Boolean _
)
‘사용 방법
Dim terminate As Boolean
Dim instance As New ParseRequest(terminate)
public ParseRequest(
bool terminate
)
public:
ParseRequest(
bool terminate
)
new :
terminate:bool -> ParseRequest
public function ParseRequest(
terminate : boolean
)
Parameters
- terminate
Type: System.Boolean
[in] Set to true if the parsing operation is to be terminated. For this constructor, this argument is must always true.
Remarks
Some parsing operations can take some time to complete and are therefore executed on a worker thread in the background. This constructor is used to terminate that worker thread.
This constructor is used in an internal method called StopThread which takes no parameters and terminates the parsing thread. The StopThread method is called from the Dispose method in the LanguageService class.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.