IVsSymbolicNavigationNotify.OnBeforeNavigateToSymbol Yöntem

Tanım

Bir kod sembolü için gidilecek alternatif bir kaynak dosya olup olmadığını belirler.

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

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

pfNavigationHandled
Int32

dışı true Simgeye yönelik gezinme işlenirse döndürür; false arayanın normal gezinti yapması gerekiyorsa

Döndürülenler

Int32

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, bir goto tanım işleminden önce çağrılır.

COM Imzası

Vsshell90. IDL adresinden:

HRESULT OnBeforeNavigateToSymbol(  
    [in] IVsHierarchy *pHierCodeFile,  
    [in] VSITEMID itemidCodeFile,  
    [in] LPCOLESTR pszRQName,  
    [out, retval] BOOL *pfNavigationHandled  
);  

Şunlara uygulanır