VsSymbolicNavigationManagerClass.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 alternate source file within which to navigate for a specified code symbol (GoTo Definition operation).
public:
virtual int OnBeforeNavigateToSymbol(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierCodeFile, System::UInt32 itemidCodeFile, System::String ^ pszRQName, [Runtime::InteropServices::Out] int % pfNavigationHandled) = Microsoft::VisualStudio::Shell::Interop::IVsSymbolicNavigationManager::OnBeforeNavigateToSymbol;
public:
virtual int OnBeforeNavigateToSymbol(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierCodeFile, System::UInt32 itemidCodeFile, System::String ^ pszRQName, [Runtime::InteropServices::Out] int % pfNavigationHandled);
virtual int OnBeforeNavigateToSymbol(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierCodeFile, unsigned int itemidCodeFile, std::wstring const & pszRQName, [Runtime::InteropServices::Out] int & pfNavigationHandled);
public virtual 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
override this.OnBeforeNavigateToSymbol : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * string * int -> int
Public Overridable Function OnBeforeNavigateToSymbol (pHierCodeFile As IVsHierarchy, itemidCodeFile As UInteger, pszRQName As String, ByRef pfNavigationHandled As Integer) As Integer
Parameters
- pHierCodeFile
- IVsHierarchy
[in] The IVsHierarchy of the alternate code file within which to navigate.
- itemidCodeFile
- UInt32
[in] The VSConstants.VSITEMID of the alternate code file within which to navigate.
- pszRQName
- String
[in] Refactor-qualified-name(RQName)-syntax string that identifies the symbol to navigate to.
- pfNavigationHandled
- Int32
[out] Flag indicating whether navigation to the specified symbol has been handled. Returns true
if symbol has been handled; otherwise returns false
if caller should do normal navigation.
Returns
Returns S_OK
if the method succeeds.