Udostępnij za pośrednictwem


Konstruktor DocumentTask —

Inicjuje nowe wystąpienie DocumentTask dla buforu określony tekst, zakres tekstu i nazwę pliku.

Przestrzeń nazw:  Microsoft.VisualStudio.Package
Zestawy:   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)
  Microsoft.VisualStudio.Package.LanguageService (w Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (w Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Składnia

'Deklaracja
Public Sub New ( _
    site As IServiceProvider, _
    buffer As IVsTextLines, _
    markerType As MARKERTYPE, _
    span As TextSpan, _
    fileName As String _
)
public DocumentTask(
    IServiceProvider site,
    IVsTextLines buffer,
    MARKERTYPE markerType,
    TextSpan span,
    string fileName
)

Parametry

  • fileName
    Typ: System.String
    Nazwa pliku, w którym znajduje się tekst.

Uwagi

Ten konstruktor tworzy znacznik, który umożliwia nawigację między listy zadań i w oknie Kod.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

DocumentTask Klasa

Przestrzeń nazw Microsoft.VisualStudio.Package