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

‘선언
Function NavigateTo ( _
    pObjInfo As VSOBJECTINFO(), _
    dwReserved As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsClassView
Dim pObjInfo As VSOBJECTINFO()
Dim dwReserved As UInteger
Dim returnValue As Integer

returnValue = instance.NavigateTo(pObjInfo, _
    dwReserved)
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

  • 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.

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

See Also

Reference

IVsClassView Interface

IVsClassView Members

Microsoft.VisualStudio.Shell.Interop Namespace