ParseRequest.Sink Property
Specifies an AuthoringSink object used to contain information from the parsing operation.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.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
'宣言
Public Property Sink As AuthoringSink
public AuthoringSink Sink { get; set; }
Property Value
Type: Microsoft.VisualStudio.Package.AuthoringSink
Returns an AuthoringSink object that was created in the ParseRequest class constructor.
Remarks
The AuthoringSink object is used by the parser to collect information about the source file such as method signatures, matching language pairs (for example "{" and "}") and triples (for example "if(...)", "{" and "}"), and member declarations.
If you need to derive your own version of an AuthoringSink object, use this property right after the ParseRequest class is instantiated to set your version of the AuthoringSink object. See the Example in the ParseRequest class topic to see how this can be done.
.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.