Partilhar via


IVsClassView.NavigateTo(VSOBJECTINFO[], UInt32) Method

Definition

Asks the environment to navigate to a given object in Class View.

public:
 int NavigateTo(cli::array <Microsoft::VisualStudio::Shell::Interop::VSOBJECTINFO> ^ pObjInfo, System::UInt32 dwReserved);
int NavigateTo(std::Array <Microsoft::VisualStudio::Shell::Interop::VSOBJECTINFO> const & pObjInfo, unsigned int dwReserved);
public int NavigateTo (Microsoft.VisualStudio.Shell.Interop.VSOBJECTINFO[] pObjInfo, uint dwReserved);
abstract member NavigateTo : Microsoft.VisualStudio.Shell.Interop.VSOBJECTINFO[] * uint32 -> int
Public Function NavigateTo (pObjInfo As VSOBJECTINFO(), dwReserved As UInteger) As Integer

Parameters

pObjInfo
VSOBJECTINFO[]

[in] Specifies a VSOBJECTINFO structure containing the fully qualified name of the object that is the target of the navigation.

dwReserved
UInt32

[in] Reserved parameter. Must be zero.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsClassView::NavigateTo(  
   [in] const VSOBJECTINFO *pObjInfo,  
   [in] DWORD dwReserved  
);  

Language implementers should call this method to implement the Synchronize Class View command from the source editor.

Callers should fill the pObjInfo structure with fully qualified name of the object of interest. The environment will then navigate to the specified object in Class View. This only works for objects defined within your projects.

Applies to