DocumentTask Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- site
- IServiceProvider
The IServiceProvider.
- buffer
- IVsTextLines
The IVsTextLines text buffer.
- markerType
- MARKERTYPE
The MARKERTYPE of the marker.
- 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.