다음을 통해 공유


Source.CreateAuthoringSink Method

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

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

Syntax

‘선언
Public Overridable Function CreateAuthoringSink ( _
    reason As ParseReason, _
    line As Integer, _
    col As Integer _
) As AuthoringSink
‘사용 방법
Dim instance As Source
Dim reason As ParseReason
Dim line As Integer
Dim col As Integer
Dim returnValue As AuthoringSink

returnValue = instance.CreateAuthoringSink(reason, _
    line, col)
public virtual AuthoringSink CreateAuthoringSink(
    ParseReason reason,
    int line,
    int col
)
public:
virtual AuthoringSink^ CreateAuthoringSink(
    ParseReason reason, 
    int line, 
    int col
)
abstract CreateAuthoringSink : 
        reason:ParseReason * 
        line:int * 
        col:int -> AuthoringSink 
override CreateAuthoringSink : 
        reason:ParseReason * 
        line:int * 
        col:int -> AuthoringSink 
public function CreateAuthoringSink(
    reason : ParseReason, 
    line : int, 
    col : int
) : AuthoringSink

Parameters

  • line
    Type: System.Int32
    The line index where the parsing is to start.
  • col
    Type: System.Int32
    The column index where the parsing is to start.

Return Value

Type: Microsoft.VisualStudio.Package.AuthoringSink
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.

.NET Framework Security

See Also

Reference

Source Class

Source Members

Microsoft.VisualStudio.Package Namespace