IVsSymbolicNavigationManager.OnBeforeNavigateToSymbol 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.
Determines if there is an alternative source file to navigate to for a code symbol (a Goto Definition operation).
public:
int OnBeforeNavigateToSymbol(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierCodeFile, System::UInt32 itemidCodeFile, System::String ^ pszRQName, [Runtime::InteropServices::Out] int % pfNavigationHandled);
int OnBeforeNavigateToSymbol(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierCodeFile, unsigned int itemidCodeFile, std::wstring const & pszRQName, [Runtime::InteropServices::Out] int & pfNavigationHandled);
public int OnBeforeNavigateToSymbol (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierCodeFile, uint itemidCodeFile, string pszRQName, out int pfNavigationHandled);
abstract member OnBeforeNavigateToSymbol : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * string * int -> int
Public Function OnBeforeNavigateToSymbol (pHierCodeFile As IVsHierarchy, itemidCodeFile As UInteger, pszRQName As String, ByRef pfNavigationHandled As Integer) As Integer
Parameters
- pHierCodeFile
- IVsHierarchy
[in] Hierarchy of the code-file to which the code language service would otherwise navigate.
- itemidCodeFile
- UInt32
[in] The item identifier of the code-file to which the code language service would otherwise navigate.
- pszRQName
- String
[in] RQName-syntax string that identifies the symbol that is the target of the navigation.
- pfNavigationHandled
- Int32
[out, retval] Returns true
if navigation to symbol has been handled, or false
if the caller should do normal navigation.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.