IVsSymbolicNavigationNotify.QueryNavigateToSymbol Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Varsa sembol için alternatif gezinti hedefini döndürür.
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
Parametreler
- pHierCodeFile
- IVsHierarchy
'ndaki IVsHierarchy Kod dili hizmetinin başka bir şekilde gidebilecekleri kod dosyası hiyerarşisini temsil eden bir.
- itemidCodeFile
- UInt32
[in] kod dili hizmetinin başka bir şekilde gezinebilecekleri kod dosyasının öğe kimliği
- pszRQName
- String
'ndaki RQName-gezinti hedefi olan simgeyi tanımlayan sözdizimi dizesi
- ppHierToNavigate
- IVsHierarchy
dışı IVsHierarchy , Kod dosyası üreten kaynak belge için alternatif gezinti hedefinin hiyerarşisini temsil eden bir.
- pitemidToNavigate
- UInt32
[out] Alternatif gezinme hiyerarşisi için öğe kimliği.
- pSpanToNavigate
- TextSpan[]
dışı TextSpan Alternatif gezinme hedefinde sembolün konumunu temsil eden. Kaynak bir metin belgesi değilse, (0, 0, 0, 0) olarak ayarlayın.
- pfWouldNavigate
- Int32
dışı true Alternatif gezinme hedefi döndürülürse döndürür; Aksi takdirde döndürür false .
Döndürülenler
Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.
Açıklamalar
Bu yöntem, varsa alternatif bir gezinti hedefi döndürür, ancak gerçekten gezinti yapmaz.
COM Imzası
Vsshell90. IDL adresinden:
HRESULT QueryNavigateToSymbol(
[in] IVsHierarchy *pHierCodeFile,
[in] VSITEMID itemidCodeFile,
[in] LPCOLESTR pszRQName,
[out] IVsHierarchy **ppHierToNavigate,
[out] VSITEMID *pitemidToNavigate,
[out] TextSpan *pSpanToNavigate,
[out, retval] BOOL *pfWouldNavigate
);