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
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
- 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.