Compartilhar via


IVsNavigationTool.NavigateToNavInfo(IVsNavInfo) Method

Definition

Tells the class or object browser to navigate to a particular item.

public:
 int NavigateToNavInfo(Microsoft::VisualStudio::Shell::Interop::IVsNavInfo ^ pNavInfo);
public:
 int NavigateToNavInfo(Microsoft::VisualStudio::Shell::Interop::IVsNavInfo ^ pNavInfo);
int NavigateToNavInfo(Microsoft::VisualStudio::Shell::Interop::IVsNavInfo const & pNavInfo);
public int NavigateToNavInfo (Microsoft.VisualStudio.Shell.Interop.IVsNavInfo pNavInfo);
abstract member NavigateToNavInfo : Microsoft.VisualStudio.Shell.Interop.IVsNavInfo -> int
Public Function NavigateToNavInfo (pNavInfo As IVsNavInfo) As Integer

Parameters

pNavInfo
IVsNavInfo

[in] Pointer to an IVsNavInfo interface indicating the item to which to navigate. You can get navigation information from the GetNavInfo(UInt32, IVsNavInfo) method of IVsObjectList2.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsNavigationTool::NavigateToNavInfo(  
   [in] IVsNavInfo * pNavInfo  
);  

Applies to