IVsContainedLanguageCodeSupport::GetMemberNavigationPoint Method (String^, String^, array<TextSpan>^, UInt32)

 

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.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int GetMemberNavigationPoint(
	String^ pszClassName,
	String^ pszUniqueMemberID,
	array<TextSpan>^ pSpanNavPoint,
	[OutAttribute] unsigned int% pItemID
)

Parameters

pszClassName
Type: System::String^

[in] Name of the class.

pszUniqueMemberID
Type: System::String^

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

pSpanNavPoint
Type: array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^

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

pItemID
Type: System::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.

Return Value

Type: System::Int32

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

From singlefileeditor.idl:

HRESULT GetMemberNavigationPoint(
   [in]  LPCWSTR   pszClassName,
   [in]  LPCWSTR   pszUniqueMemberID,
   [out] TextSpan* pSpanNavPoint,
   [out] VSITEMID* pItemID
);
Return to top
Show: