다음을 통해 공유


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.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
    Get
    Set
‘사용 방법
Dim instance As ParseRequest
Dim value As AuthoringSink

value = instance.Sink

instance.Sink = value
public AuthoringSink Sink { get; set; }
public:
property AuthoringSink^ Sink {
    AuthoringSink^ get ();
    void set (AuthoringSink^ value);
}
member Sink : AuthoringSink with get, set
function get Sink () : AuthoringSink
function set Sink (value : AuthoringSink)

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

See Also

Reference

ParseRequest Class

ParseRequest Members

Microsoft.VisualStudio.Package Namespace