[This is preliminary documentation and subject to change.]
The IWbemClassObject::GetObjectText method returns a textual rendering of the object. Currently, only Managed Object Format (MOF) syntax is supported as an output format. Notice that the MOF text returned does not contain all the information about the object, but only enough information for the MOF compiler to be able to re-create the original object. For instance, no propagated qualifiers or parent class properties are displayed.
HRESULT IWbemClassObject::GetObjectText(
[in] Long lFlags,
[out] BSTR *pbstrObjectText
);
WBEM_E_FAILED | Other unspecified failures. |
WBEM_E_INVALID_PARAMETER | An invalid parameter was specified, or the namespace could not be parsed. |
WBEM_E_OUT_OF_MEMORY | There was not enough memory to complete the operation. |
WBEM_NO_ERROR | Success. |