IVsClassView.NavigateTo(VSOBJECTINFO[], UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.