Udostępnij za pośrednictwem


ParseRequest.Reason Property

Definition

Specifies the reason the parsing operation was started.

public:
 property Microsoft::VisualStudio::Package::ParseReason Reason { Microsoft::VisualStudio::Package::ParseReason get(); void set(Microsoft::VisualStudio::Package::ParseReason value); };
public:
 property Microsoft::VisualStudio::Package::ParseReason Reason { Microsoft::VisualStudio::Package::ParseReason get(); void set(Microsoft::VisualStudio::Package::ParseReason value); };
public Microsoft.VisualStudio.Package.ParseReason Reason { get; set; }
member this.Reason : Microsoft.VisualStudio.Package.ParseReason with get, set
Public Property Reason As ParseReason

Property Value

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.

Applies to