Partilhar via


IDebugDisassemblyStream2::GetDocument

Gets the source document associated with this input stream.

HRESULT GetDocument( 
   BSTR              bstrDocumentUrl,
   IDebugDocument2** ppDocument
);
int GetDocument( 
   string              bstrDocumentUrl,
   out IDebugDocument2 ppDocument
);

Parameters

  • bstrDocumentUrl
    [in] The document URL.

  • ppDocument
    [out] Returns an IDebugDocument2 object representing the document.

Return Value

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

Remarks

This method is implemented by debug engines that have text documents that are not stored in an actual file.

See Also

Reference

IDebugDisassemblyStream2

IDebugDocument2