ParseRequest Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ParseRequest class.
Overloads
ParseRequest(Boolean) |
Initializes a new instance of the ParseRequest class in order to terminate the thread used for background parsing operations. |
ParseRequest(Int32, Int32, TokenInfo, String, String, ParseReason, IVsTextView, AuthoringSink, Boolean) |
Initializes a new instance of the ParseRequest class. |
Remarks
In addition to initializing properties with the constructor arguments, a new AuthoringSink object is created.
ParseRequest(Boolean)
Initializes a new instance of the ParseRequest class in order to terminate the thread used for background parsing operations.
public:
ParseRequest(bool terminate);
public:
ParseRequest(bool terminate);
ParseRequest(bool terminate);
public ParseRequest (bool terminate);
new Microsoft.VisualStudio.Package.ParseRequest : bool -> Microsoft.VisualStudio.Package.ParseRequest
Public Sub New (terminate As Boolean)
Parameters
- terminate
- 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.
Applies to
ParseRequest(Int32, Int32, TokenInfo, String, String, ParseReason, IVsTextView, AuthoringSink, Boolean)
Initializes a new instance of the ParseRequest class.
public:
ParseRequest(int line, int col, Microsoft::VisualStudio::Package::TokenInfo ^ info, System::String ^ src, System::String ^ fname, Microsoft::VisualStudio::Package::ParseReason reason, Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ view, Microsoft::VisualStudio::Package::AuthoringSink ^ sink, bool synchronous);
ParseRequest(int line, int col, Microsoft::VisualStudio::Package::TokenInfo const & info, std::wstring const & src, std::wstring const & fname, Microsoft::VisualStudio::Package::ParseReason reason, Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & view, Microsoft::VisualStudio::Package::AuthoringSink const & sink, bool synchronous);
public ParseRequest (int line, int col, Microsoft.VisualStudio.Package.TokenInfo info, string src, string fname, Microsoft.VisualStudio.Package.ParseReason reason, Microsoft.VisualStudio.TextManager.Interop.IVsTextView view, Microsoft.VisualStudio.Package.AuthoringSink sink, bool synchronous);
new Microsoft.VisualStudio.Package.ParseRequest : int * int * Microsoft.VisualStudio.Package.TokenInfo * string * string * Microsoft.VisualStudio.Package.ParseReason * Microsoft.VisualStudio.TextManager.Interop.IVsTextView * Microsoft.VisualStudio.Package.AuthoringSink * bool -> Microsoft.VisualStudio.Package.ParseRequest
Public Sub New (line As Integer, col As Integer, info As TokenInfo, src As String, fname As String, reason As ParseReason, view As IVsTextView, sink As AuthoringSink, synchronous As Boolean)
Parameters
- line
- Int32
The line on which to start the parsing operation.
- col
- Int32
The character offset on the first line to begin the parsing operation.
- info
- TokenInfo
The object that is to be filled with the results of the parsing operation.
- src
- String
The text to be parsed.
- fname
- String
The name of the source file to be parsed.
- reason
- ParseReason
The reason the parsing operation was started.
- view
- IVsTextView
The view that contains the source file that is being parsed.
- sink
- AuthoringSink
The object used to contain information from the parsing operation.
- synchronous
- Boolean
true
if the request is synchronous, false
if it is asynchronous.