DocumentTask Constructor
Initializes a new instance of DocumentTask for the specified text buffer, text span, and file name.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Syntax
'Declaration
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
)
public:
DocumentTask(
IServiceProvider^ site,
IVsTextLines^ buffer,
MARKERTYPE markerType,
TextSpan span,
String^ fileName
)
new :
site:IServiceProvider *
buffer:IVsTextLines *
markerType:MARKERTYPE *
span:TextSpan *
fileName:string -> DocumentTask
public function DocumentTask(
site : IServiceProvider,
buffer : IVsTextLines,
markerType : MARKERTYPE,
span : TextSpan,
fileName : String
)
Parameters
site
Type: IServiceProviderThe IServiceProvider.
buffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLinesThe IVsTextLines text buffer.
markerType
Type: Microsoft.VisualStudio.TextManager.Interop.MARKERTYPEThe MARKERTYPE of the marker.
span
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpanThe TextSpan of the buffer.
fileName
Type: StringThe 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.