Initializes a new instance of DocumentTask for the specified text buffer, text span, and file name.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Sub New ( _
site As IServiceProvider, _
buffer As IVsTextLines, _
markerType As MARKERTYPE, _
span As TextSpan, _
fileName As String _
)
'使用
Dim site As IServiceProvider
Dim buffer As IVsTextLines
Dim markerType As MARKERTYPE
Dim span As TextSpan
Dim fileName As String
Dim instance As New DocumentTask(site, buffer, _
markerType, span, fileName)
public DocumentTask(
IServiceProvider site,
IVsTextLines buffer,
MARKERTYPE markerType,
TextSpan span,
string fileName
)
public:
DocumentTask(
IServiceProvider^ site,
IVsTextLines^ buffer,
MARKERTYPE markerType,
TextSpan span,
String^ fileName
)
public function DocumentTask(
site : IServiceProvider,
buffer : IVsTextLines,
markerType : MARKERTYPE,
span : TextSpan,
fileName : String
)
Parameters
site
Type: System.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: System.StringThe name of the file in which the text is found.
Remarks
This constructor creates the marker that allows navigation between the task list and the code window.
Permissions
- 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.