Compartilhar via


Source.CreateAuthoringSink(ParseReason, Int32, Int32) Method

Definition

Creates an instance of an AuthoringSink object for use in parsing operations.

public:
 virtual Microsoft::VisualStudio::Package::AuthoringSink ^ CreateAuthoringSink(Microsoft::VisualStudio::Package::ParseReason reason, int line, int col);
 virtual Microsoft::VisualStudio::Package::AuthoringSink CreateAuthoringSink(Microsoft::VisualStudio::Package::ParseReason reason, int line, int col);
public virtual Microsoft.VisualStudio.Package.AuthoringSink CreateAuthoringSink (Microsoft.VisualStudio.Package.ParseReason reason, int line, int col);
abstract member CreateAuthoringSink : Microsoft.VisualStudio.Package.ParseReason * int * int -> Microsoft.VisualStudio.Package.AuthoringSink
override this.CreateAuthoringSink : Microsoft.VisualStudio.Package.ParseReason * int * int -> Microsoft.VisualStudio.Package.AuthoringSink
Public Overridable Function CreateAuthoringSink (reason As ParseReason, line As Integer, col As Integer) As AuthoringSink

Parameters

reason
ParseReason

A value from the ParseReason enumeration describing the reason for the parse operation.

line
Int32

The line index where the parsing is to start.

col
Int32

The column index where the parsing is to start.

Returns

Returns an AuthoringSink object.

Remarks

This method is called from the CreateParseRequest method in the LanguageService class. If you need to derive a class from the AuthoringSink class, you need to derive a class from the Source class and override this method to instantiate your version of the AuthoringSink class.

The base method always returns a new instance of the AuthoringSink class.

Applies to