IVsXMLMemberIndex::GetMemberXML Method (UInt32, String^)

 

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)

int GetMemberXML(
	unsigned int dwId,
	[OutAttribute] String^% pbstrXML
)

Parameters

dwId
Type: System::UInt32

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

pbstrXML
Type: System::String^

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

Return Value

Type: System::Int32

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

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

System_CAPS_noteNote

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).

From vsshell.idl:

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