DWbemClassObject.GetObjectText

[This is preliminary documentation and subject to change.]

The DWbemClassObject.GetObjectText method returns a textual rendering of the object. Currently, only the 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, you will not find any information about the propagated qualifiers or the parent class properties.

DWbemClassObject.GetObjectText(
  [in] lFlags As Long,
  [out] strObjectText As String
) As Long
 

Parameters

lFlags
Reserved. It must be set to zero.
strObjectText
Output string that the output text will be placed in.

Return Values

WBEM_E_FAILED Unspecified error.
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.

See Also

DIWbemQualifierSet