ParseRequest::Reason Property

 

Specifies the reason the parsing operation was started.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
property ParseReason Reason {
	ParseReason get();
	void set(ParseReason value);
}

Property Value

Type: Microsoft.VisualStudio.Package::ParseReason

Returns the ParseReason value passed to the ParseRequest class constructor.

The ParseReason value must be used by the parser as it determines what kind of information is to be obtained. For example, Check means to parse the entire source file while CompleteWord means parse only the identifier at the specified location. The former is typically done on a background thread and can take some time to complete while the latter is typically done on the foreground thread and should take very little time.

Return to top
Show: