IVsClassView.NavigateTo Method
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)
Syntax
'Declaration
Function NavigateTo ( _
pObjInfo As VSOBJECTINFO(), _
dwReserved As UInteger _
) As Integer
int NavigateTo(
VSOBJECTINFO[] pObjInfo,
uint dwReserved
)
int NavigateTo(
[InAttribute] array<VSOBJECTINFO>^ pObjInfo,
[InAttribute] unsigned int dwReserved
)
abstract NavigateTo :
pObjInfo:VSOBJECTINFO[] *
dwReserved:uint32 -> int
function NavigateTo(
pObjInfo : VSOBJECTINFO[],
dwReserved : uint
) : int
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: UInt32[in] Reserved parameter. Must be zero.
Return Value
Type: Int32
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.