TaskProvider.Navigate Method
Navigates from the task to the correct position in the document, shown in the specified logical view.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Function Navigate ( _
task As Task, _
logicalView As Guid _
) As Boolean
public bool Navigate(
Task task,
Guid logicalView
)
public:
bool Navigate(
Task^ task,
Guid logicalView
)
member Navigate :
task:Task *
logicalView:Guid -> bool
public function Navigate(
task : Task,
logicalView : Guid
) : boolean
Parameters
task
Type: Microsoft.VisualStudio.Shell.TaskThe task from which to do the navigation.
logicalView
Type: GuidThe logical view in which to display the document.
Return Value
Type: Boolean
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.
.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.