IVsSymbolicNavigationNotify.QueryNavigateToSymbol(IVsHierarchy, UInt32, String, IVsHierarchy, UInt32, TextSpan[], 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.
Retourne l'autre cible de navigation pour le symbole s'il en existe un.
public:
int QueryNavigateToSymbol(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierCodeFile, System::UInt32 itemidCodeFile, System::String ^ pszRQName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ % ppHierToNavigate, [Runtime::InteropServices::Out] System::UInt32 % pitemidToNavigate, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpanToNavigate, [Runtime::InteropServices::Out] int % pfWouldNavigate);
int QueryNavigateToSymbol(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierCodeFile, unsigned int itemidCodeFile, std::wstring const & pszRQName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & & ppHierToNavigate, [Runtime::InteropServices::Out] unsigned int & pitemidToNavigate, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pSpanToNavigate, [Runtime::InteropServices::Out] int & pfWouldNavigate);
public int QueryNavigateToSymbol (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierCodeFile, uint itemidCodeFile, string pszRQName, out Microsoft.VisualStudio.Shell.Interop.IVsHierarchy ppHierToNavigate, out uint pitemidToNavigate, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pSpanToNavigate, out int pfWouldNavigate);
abstract member QueryNavigateToSymbol : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * string * IVsHierarchy * uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * int -> int
Public Function QueryNavigateToSymbol (pHierCodeFile As IVsHierarchy, itemidCodeFile As UInteger, pszRQName As String, ByRef ppHierToNavigate As IVsHierarchy, ByRef pitemidToNavigate As UInteger, pSpanToNavigate As TextSpan(), ByRef pfWouldNavigate As Integer) As Integer
Paramètres
- pHierCodeFile
- IVsHierarchy
[in] IVsHierarchy représentant la hiérarchie du fichier de code vers lequel navigue, sinon, le service de langage du code.
- itemidCodeFile
- UInt32
[in] ItemId du fichier de code vers lequel navigue, sinon, le service de langage du code
- pszRQName
- String
[in] Chaîne de syntaxe RQName qui identifie le symbole correspondant à la cible de la navigation.
- ppHierToNavigate
- IVsHierarchy
[out] IVsHierarchy représentant la hiérarchie de l'autre cible de navigation, c'est-à-dire pour le document source générant le fichier de code).
- pitemidToNavigate
- UInt32
[out] Itemid de la hiérarchie de l'autre cible de navigation.
- pSpanToNavigate
- TextSpan[]
[out] TextSpan représentant l'emplacement du symbole dans l'autre cible de navigation. Défini sur (0,0,0,0) si la source n'est pas un document texte.
- pfWouldNavigate
- Int32
[out] Retourne true si l'autre cible de la navigation est retournée ; sinon retourne false.
Retours
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.
Remarques
Cette méthode retourne une autre cible de navigation, si elle existe, mais n’effectue pas réellement la navigation.
Signature COM
À partir de vsshell90. idl :
HRESULT QueryNavigateToSymbol(
[in] IVsHierarchy *pHierCodeFile,
[in] VSITEMID itemidCodeFile,
[in] LPCOLESTR pszRQName,
[out] IVsHierarchy **ppHierToNavigate,
[out] VSITEMID *pitemidToNavigate,
[out] TextSpan *pSpanToNavigate,
[out, retval] BOOL *pfWouldNavigate
);