Compartir a través de


IVsSymbolicNavigationManager.OnBeforeNavigateToSymbol Method

Determines if there is an alternative source file to navigate to for a code symbol (a Goto Definition operation).

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

Syntax

'Declaration
Function OnBeforeNavigateToSymbol ( _
    pHierCodeFile As IVsHierarchy, _
    itemidCodeFile As UInteger, _
    pszRQName As String, _
    <OutAttribute> ByRef pfNavigationHandled As Integer _
) As Integer
int OnBeforeNavigateToSymbol(
    IVsHierarchy pHierCodeFile,
    uint itemidCodeFile,
    string pszRQName,
    out int pfNavigationHandled
)
int OnBeforeNavigateToSymbol(
    [InAttribute] IVsHierarchy^ pHierCodeFile, 
    [InAttribute] unsigned int itemidCodeFile, 
    [InAttribute] String^ pszRQName, 
    [OutAttribute] int% pfNavigationHandled
)
abstract OnBeforeNavigateToSymbol : 
        pHierCodeFile:IVsHierarchy * 
        itemidCodeFile:uint32 * 
        pszRQName:string * 
        pfNavigationHandled:int byref -> int
function OnBeforeNavigateToSymbol(
    pHierCodeFile : IVsHierarchy, 
    itemidCodeFile : uint, 
    pszRQName : String, 
    pfNavigationHandled : int
) : int

Parameters

  • itemidCodeFile
    Type: UInt32

    [in] The item identifier of the code-file to which the code language service would otherwise navigate.

  • pszRQName
    Type: String

    [in] RQName-syntax string that identifies the symbol that is the target of the navigation.

  • pfNavigationHandled
    Type: Int32%

    [out, retval] Returns true if navigation to symbol has been handled, or false if the caller should do normal navigation.

Return Value

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

.NET Framework Security

See Also

Reference

IVsSymbolicNavigationManager Interface

Microsoft.VisualStudio.Shell.Interop Namespace