Partager via


ParseRequest.Reason Property

Specifies the reason the parsing operation was started.

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 Reason As ParseReason
public ParseReason Reason { get; set; }
public:
property ParseReason Reason {
    ParseReason get ();
    void set (ParseReason value);
}
member Reason : ParseReason with get, set
function get Reason () : ParseReason 
function set Reason (value : ParseReason)

Property Value

Type: Microsoft.VisualStudio.Package.ParseReason
Returns the ParseReason value passed to the ParseRequest class constructor.

Remarks

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.

.NET Framework Security

See Also

Reference

ParseRequest Class

Microsoft.VisualStudio.Package Namespace