Task.IVsTaskItem.NavigateTo Method

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

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

Syntax

'Declaration
Private Function NavigateTo As Integer 
    Implements 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

Microsoft.VisualStudio.Shell Namespace