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
'Usage
Dim instance As IVsContainedLanguageCodeSupport
Dim pszClassName As String
Dim pszUniqueMemberID As String
Dim pSpanNavPoint As TextSpan()
Dim pItemID As UInteger
Dim returnValue As Integer
returnValue = instance.GetMemberNavigationPoint(pszClassName, _
pszUniqueMemberID, pSpanNavPoint, _
pItemID)
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
- 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.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT GetMemberNavigationPoint(
[in] LPCWSTR pszClassName,
[in] LPCWSTR pszUniqueMemberID,
[out] TextSpan* pSpanNavPoint,
[out] VSITEMID* pItemID
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsContainedLanguageCodeSupport Interface