DocumentTask.OnNavigate Method
Loads the document that is associated with the error and jumps to the location of the error.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Declaração
Protected Overrides Sub OnNavigate ( _
e As EventArgs _
)
protected override void OnNavigate(
EventArgs e
)
Parameters
- e
Type: System.EventArgs
[in] An EventArgs object (which in this case does not contain any information and is used only as a placeholder in a delegate object).
Remarks
This method opens the filename that is specified in the DocumentTask class constructor, selects the text described in the span (either from the IVsTextLineMarker object or the TextSpan object that was passed to the DocumentTask class constructor), and ensures that the selection is visible in the display.
.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.