Loads the document associated with the error and jumps to the location of the error.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Protected Overrides Sub OnNavigate ( _
e As EventArgs _
)
'使用
Dim e As EventArgs
Me.OnNavigate(e)
protected override void OnNavigate(
EventArgs e
)
protected:
virtual void OnNavigate(
EventArgs^ e
) override
protected override function OnNavigate(
e : EventArgs
)
Parameters
e
Type: System.EventArgs[in] An EventArgs object (which in this case does not contain any information and used only as a placeholder in a delegate object).
Remarks
This method opens the filename 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 finally ensures that the selection is visible in the display.
Permissions
- 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.