ParseRequest.Reason Property
Specifies the reason the parsing operation was started.
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
'Dichiarazione
Public Property Reason As ParseReason
Get
Set
'Utilizzo
Dim instance As ParseRequest
Dim value As ParseReason
value = instance.Reason
instance.Reason = value
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
- 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.