ParseRequest.Scope Property

Specifies the AuthoringScope object that is used to return extended information from the parsing operation.

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

Syntax

'宣言
Public Property Scope As AuthoringScope
'使用
Dim instance As ParseRequest
Dim value As AuthoringScope

value = instance.Scope

instance.Scope = value
public AuthoringScope Scope { get; set; }
public:
property AuthoringScope^ Scope {
    AuthoringScope^ get ();
    void set (AuthoringScope^ value);
}
public function get Scope () : AuthoringScope
public function set Scope (value : AuthoringScope)

Property Value

Type: Microsoft.VisualStudio.Package.AuthoringScope

Returns an AuthoringScope object.

Remarks

This property is typically set after a parsing operation completes but not by the parser. ParseSource in the LanguageService class returns an AuthoringScope object created by the parsing operation. This AuthoringScope object is typically assigned to the Scope property in the ParseRequest object to keep it with the parse request information.

Permissions

See Also

Reference

ParseRequest Class

ParseRequest Members

Microsoft.VisualStudio.Package Namespace