Partager via


IVsTaskItem2.NavigateTo Method

Opens a file associated with a task item and moves to the appropriate position in the file.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Déclaration
Function NavigateTo As Integer
'Utilisation
Dim instance As IVsTaskItem2
Dim returnValue As Integer

returnValue = instance.NavigateTo()
int NavigateTo()
int NavigateTo()
abstract NavigateTo : unit -> int 
function NavigateTo() : int

Return Value

Type: System.Int32

Implements

IVsTaskItem.NavigateTo()

Remarks

Implement this method to bring up the file, highlight the line, and place the cursor at the appropriate column in the file if the task item is associated with a particular position in a file. To establish the file, line, and column associated with a task item, implement the Document, Line, and Column methods of IVsTaskItem2.

.NET Framework Security

See Also

Reference

IVsTaskItem2 Interface

IVsTaskItem2 Members

NavigateTo Overload

Microsoft.VisualStudio.Shell.Interop Namespace