다음을 통해 공유


TaskProvider.Navigate Method

Definition

Overloads

Navigate(TaskListItem, Guid)
Navigate(Task, Guid)

Navigates from the task to the correct position in the document, shown in the specified logical view.

Navigate(TaskListItem, Guid)

public:
 bool Navigate(Microsoft::VisualStudio::Shell::TaskListItem ^ task, Guid logicalView);
public bool Navigate (Microsoft.VisualStudio.Shell.TaskListItem task, Guid logicalView);
member this.Navigate : Microsoft.VisualStudio.Shell.TaskListItem * Guid -> bool
Public Function Navigate (task As TaskListItem, logicalView As Guid) As Boolean

Parameters

logicalView
Guid

Returns

Applies to

Navigate(Task, Guid)

Navigates from the task to the correct position in the document, shown in the specified logical view.

public:
 bool Navigate(Microsoft::VisualStudio::Shell::Task ^ task, Guid logicalView);
public bool Navigate (Microsoft.VisualStudio.Shell.Task task, Guid logicalView);
member this.Navigate : Microsoft.VisualStudio.Shell.Task * Guid -> bool
Public Function Navigate (task As Task, logicalView As Guid) As Boolean

Parameters

task
Task

The task from which to do the navigation.

logicalView
Guid

The logical view in which to display the document.

Returns

true if it was possible to perform the navigation, otherwise false.

Remarks

This method opens the document referenced by task in the specified logical view and puts the cursor at the beginning of the line.

Applies to