Udostępnij za pośrednictwem


IVsTaskItem.NavigateTo Method

Definition

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

public:
 int NavigateTo();
public:
 int NavigateTo();
int NavigateTo();
public int NavigateTo ();
abstract member NavigateTo : unit -> int
Public Function NavigateTo () As Integer

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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

Applies to