Compartilhar via


DocumentTask.OnNavigate(EventArgs) Method

Definition

Loads the document that is associated with the error and jumps to the location of the error.

protected:
 override void OnNavigate(EventArgs ^ e);
protected override void OnNavigate (EventArgs e);
override this.OnNavigate : EventArgs -> unit
Protected Overrides Sub OnNavigate (e As EventArgs)

Parameters

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

Applies to