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

參數

task
Task

要從中進行導覽的工作。The task from which to do the navigation.

logicalView
Guid

要在其中顯示檔的邏輯視圖。The logical view in which to display the document.

傳回

Boolean

true 如果可以執行導覽,則為,否則為 falsetrue if it was possible to perform the navigation, otherwise false.

備註

這個方法會 task 在指定的邏輯視圖中開啟參考的檔,並將游標放在行首。This method opens the document referenced by task in the specified logical view and puts the cursor at the beginning of the line.

適用於