DocumentTask(IServiceProvider, IVsTextLines, MARKERTYPE, TextSpan, String) Constructeur

Définition

Initialise une nouvelle instance de DocumentTask pour la mémoire tampon de texte, l'étendue de texte et le nom de fichier spécifiés.

public:
 DocumentTask(IServiceProvider ^ site, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ buffer, Microsoft::VisualStudio::TextManager::Interop::MARKERTYPE markerType, Microsoft::VisualStudio::TextManager::Interop::TextSpan span, System::String ^ fileName);
public DocumentTask (IServiceProvider site, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines buffer, Microsoft.VisualStudio.TextManager.Interop.MARKERTYPE markerType, Microsoft.VisualStudio.TextManager.Interop.TextSpan span, string fileName);
new Microsoft.VisualStudio.Package.DocumentTask : IServiceProvider * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * Microsoft.VisualStudio.TextManager.Interop.MARKERTYPE * Microsoft.VisualStudio.TextManager.Interop.TextSpan * string -> Microsoft.VisualStudio.Package.DocumentTask
Public Sub New (site As IServiceProvider, buffer As IVsTextLines, markerType As MARKERTYPE, span As TextSpan, fileName As String)

Paramètres

buffer
IVsTextLines

Mémoire tampon de texte de IVsTextLines.

markerType
MARKERTYPE

Objet MARKERTYPE du marqueur.

span
TextSpan

Objet TextSpan de la mémoire tampon.

fileName
String

Nom du fichier dans lequel le texte est trouvé.

Remarques

Ce constructeur crée le marqueur qui permet la navigation entre la liste des tâches et la fenêtre de code.

S’applique à