Dela via


IVsXMLMemberIndex.GetMemberXML Method

Retrieves the XML source corresponding to a given member.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function GetMemberXML ( _
    dwId As UInteger, _
    <OutAttribute> ByRef pbstrXML As String _
) As Integer
int GetMemberXML(
    uint dwId,
    out string pbstrXML
)
int GetMemberXML(
    [InAttribute] unsigned int dwId, 
    [OutAttribute] String^% pbstrXML
)
abstract GetMemberXML : 
        dwId:uint32 * 
        pbstrXML:string byref -> int
function GetMemberXML(
    dwId : uint, 
    pbstrXML : String
) : int

Parameters

  • dwId
    Type: UInt32

    [in] Unsigned integer. A member identifier generated by the underlying parser. Obtain the identifier from the ParseMemberSignature method.

  • pbstrXML
    Type: String%

    [out] Pointer to a string containing the XML source.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

The XML is surrounded by <doc> </doc> tags, but will otherwise be the exact contents of the XML for the member specified.

Note

This method blocks until the index is completely constructed, should that be happening on another thread. The method begins the process of constructing the index if it has not yet begun (or is out of date relative to the XML file).

COM Signature

From vsshell.idl:

HRESULT IVsXMLMemberIndex::GetMemberXML(
   [in] DWORD_PTR dwID, 
   [out] BSTR *pbstrXML
);

.NET Framework Security

See Also

Reference

IVsXMLMemberIndex Interface

Microsoft.VisualStudio.Shell.Interop Namespace