다음을 통해 공유


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.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.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)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

'Declaration
Protected Overrides Sub OnNavigate ( _
    e As EventArgs _
)
protected override void OnNavigate(
    EventArgs e
)
protected:
virtual void OnNavigate(
    EventArgs^ e
) override
abstract OnNavigate : 
        e:EventArgs -> unit  
override OnNavigate : 
        e:EventArgs -> unit
protected override function OnNavigate(
    e : EventArgs
)

Parameters

  • e
    Type: 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

See Also

Reference

DocumentTask Class

Microsoft.VisualStudio.Package Namespace