Udostępnij za pośrednictwem


Metoda Source.CreateAuthoringSink —

Tworzy instancję AuthoringSink obiektu do użytku podczas analizowania operacji.

Przestrzeń nazw:  Microsoft.VisualStudio.Package
Zestawy:   Microsoft.VisualStudio.Package.LanguageService.10.0 (w Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (w Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (w Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (w Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Składnia

'Deklaracja
Public Overridable Function CreateAuthoringSink ( _
    reason As ParseReason, _
    line As Integer, _
    col As Integer _
) As AuthoringSink
public virtual AuthoringSink CreateAuthoringSink(
    ParseReason reason,
    int line,
    int col
)

Parametry

  • line
    Typ: System.Int32
    Indeks linii, gdzie analizy jest rozpoczęcie.
  • col
    Typ: System.Int32
    Indeks kolumny, gdy przetwarzanie jest rozpoczęcie.

Wartość zwracana

Typ: Microsoft.VisualStudio.Package.AuthoringSink
Zwraca AuthoringSink obiektu.

Uwagi

Ta metoda jest wywoływana z CreateParseRequest metodę w LanguageService klasy.Jeśli potrzebujesz klasę z AuthoringSink klasy, musisz klasę z Source klasy i zastąpienie tej metody tworzenia wystąpienia danej wersji AuthoringSink klasy.

Metody podstawowej zawsze zwraca nową instancję AuthoringSink klasy.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

Source Klasa

Przestrzeń nazw Microsoft.VisualStudio.Package