Udostępnij za pośrednictwem


Metoda LanguageService.GetSource — (IVsTextLines)

Zwraca istniejący Source obiekt, który zawiera określony bufor źródła.

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

Składnia

'Deklaracja
Public Function GetSource ( _
    buffer As IVsTextLines _
) As Source
public Source GetSource(
    IVsTextLines buffer
)

Parametry

Wartość zwracana

Typ: Microsoft.VisualStudio.Package.Source
Jeśli się powiedzie, zwraca Source obiektu; w przeciwnym razie zwraca wartość null (nie ma żadnych Source obiekt w tej usłudze języka, który kontroluje ten zestaw wierszy źródłowych).

Uwagi

Usługa języka utrzymuje wewnętrzną listę wszystkich Source obiekty utworzone.Tej listy, który jest wyszukiwany jest Source obiekt, który zawiera określone IVsTextLines obiektu.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

LanguageService Klasa

Przeciążenie GetSource

Przestrzeń nazw Microsoft.VisualStudio.Package