Freigeben über


Task.IVsTaskItem.NavigateTo Method

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

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Declaration
Private Function NavigateTo As Integer
    Implements IVsTaskItem.NavigateTo
'Usage
Dim instance As Task
Dim returnValue As Integer

returnValue = CType(instance, IVsTaskItem).NavigateTo()
int IVsTaskItem.NavigateTo()
private:
virtual int NavigateTo() sealed = IVsTaskItem::NavigateTo
private abstract NavigateTo : unit -> int 
private override NavigateTo : unit -> int 
JScript does not support explicit interface implementations.

Return Value

Type: System.Int32
S_OK().

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.

.NET Framework Security

See Also

Reference

Task Class

Task Members

Microsoft.VisualStudio.Shell Namespace