IVsClassView::NavigateTo Method (array<VSOBJECTINFO>^, UInt32)

 

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

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int NavigateTo(
	array<VSOBJECTINFO>^ pObjInfo,
	unsigned int dwReserved
)

Parameters

pObjInfo
Type: array<Microsoft.VisualStudio.Shell.Interop::VSOBJECTINFO>^

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

dwReserved
Type: System::UInt32

[in] Reserved parameter. Must be zero.

Return Value

Type: System::Int32

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

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.

Return to top
Show: