Condividi tramite


IVsContainedLanguageCodeSupport.GetMemberNavigationPoint Method

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)

Syntax

'Declaration
Function GetMemberNavigationPoint ( _
    pszClassName As String, _
    pszUniqueMemberID As String, _
    <OutAttribute> pSpanNavPoint As TextSpan(), _
    <OutAttribute> ByRef pItemID As UInteger _
) As Integer
int GetMemberNavigationPoint(
    string pszClassName,
    string pszUniqueMemberID,
    TextSpan[] pSpanNavPoint,
    out uint pItemID
)
int GetMemberNavigationPoint(
    [InAttribute] String^ pszClassName, 
    [InAttribute] String^ pszUniqueMemberID, 
    [OutAttribute] array<TextSpan>^ pSpanNavPoint, 
    [OutAttribute] unsigned int% pItemID
)
abstract GetMemberNavigationPoint : 
        pszClassName:string * 
        pszUniqueMemberID:string * 
        pSpanNavPoint:TextSpan[] byref * 
        pItemID:uint32 byref -> int
function GetMemberNavigationPoint(
    pszClassName : String, 
    pszUniqueMemberID : String, 
    pSpanNavPoint : TextSpan[], 
    pItemID : uint
) : int

Parameters

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsContainedLanguageCodeSupport Interface

Microsoft.VisualStudio.TextManager.Interop Namespace