IVsSymbolicNavigationManager.OnBeforeNavigateToSymbol(IVsHierarchy, UInt32, String, Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine s'il existe un autre fichier source vers lequel naviguer pour un symbole de code (opération Atteindre la définition).
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
Paramètres
- pHierCodeFile
- IVsHierarchy
[in] Hiérarchie du fichier de code vers lequel navigue, sinon, le service de langage du code.
- itemidCodeFile
- UInt32
[in] Identificateur d'élément du fichier de code auquel accède le service de langage de code.
- pszRQName
- String
[in] Chaîne de syntaxe RQName qui identifie le symbole correspondant à la cible de la navigation.
- pfNavigationHandled
- Int32
[out, retval] Retourne true si la navigation au symbole a été gérée, ou false si l'appelant doit effectuer une navigation normale.
Retours
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.