Partager via


DocumentTask Constructor

Definition

Initializes a new instance of DocumentTask for the specified text buffer, text span, and file name.

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)

Parameters

buffer
IVsTextLines

The IVsTextLines text buffer.

markerType
MARKERTYPE

The MARKERTYPE of the marker.

span
TextSpan

The TextSpan of the buffer.

fileName
String

The name of the file in which the text is found.

Remarks

This constructor creates the marker that enables navigation between the task list and the code window.

Applies to