Freigeben über


IVsContainedLanguageCodeSupport.GetMemberNavigationPoint Method

Definition

Obtains the position (for example the starting character index, starting line, ending character index, ending line, and item ID of file) in the secondary buffer coordinates or partial class file buffer coordinates, of a given a class member, that could be cached and later used to navigate to that member.

public:
 int GetMemberNavigationPoint(System::String ^ pszClassName, System::String ^ pszUniqueMemberID, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pSpanNavPoint, [Runtime::InteropServices::Out] System::UInt32 % pItemID);
int GetMemberNavigationPoint(std::wstring const & pszClassName, std::wstring const & pszUniqueMemberID, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pSpanNavPoint, [Runtime::InteropServices::Out] unsigned int & pItemID);
public int GetMemberNavigationPoint (string pszClassName, string pszUniqueMemberID, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pSpanNavPoint, out uint pItemID);
abstract member GetMemberNavigationPoint : string * string * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * uint32 -> int
Public Function GetMemberNavigationPoint (pszClassName As String, pszUniqueMemberID As String, pSpanNavPoint As TextSpan(), ByRef pItemID As UInteger) As Integer

Parameters

pszClassName
String

[in] Name of the class.

pszUniqueMemberID
String

[in] Unique member identifier (as might be returned from the GetEventHandlerMemberID(String, String, String, String, String) method).

pSpanNavPoint
TextSpan[]

[in, out] A TextSpan object that is filled in with the position in the secondary buffer of the specified member.

pItemID
UInt32

[out] Returns the item ID of the parent document. This is a unique identifier or one of the following values: VSITEMID_NIL, VSITEMID_ROOT or VSITEMID_SELECTION.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT GetMemberNavigationPoint(  
   [in]  LPCWSTR   pszClassName,  
   [in]  LPCWSTR   pszUniqueMemberID,  
   [out] TextSpan* pSpanNavPoint,  
   [out] VSITEMID* pItemID  
);  

Applies to