Click to Rate and Give Feedback
MSDN
MSDN Library
WMI Reference
SWbemObject
 SWbemObject.GetObjectText_ Method
SWbemObject.GetObjectText_ Method

The GetObjectText_ method of the SWbemObject object returns a textual rendering of the object. This object can be used to display an object's contents. Currently, only the MOF syntax is supported as an output format. Notice that the MOF text returned does not contain all the information about the object; the MOF text contains only enough information for the MOF compiler to be able to recreate the original object. For instance, there is no information about the propagated qualifiers or the parent class properties.

The following syntax is language-neutral. For an explanation of this syntax, see Document Conventions for the Scripting API.

Syntax

Script

strMofText = GetObjectText_(
  [ iFlags = 0 ]
)

Parameters

iFlags [in, optional]

Reserved and must be 0 (zero) if specified.

strMofText [out]

If successful, this method returns a string that contains the output text.

Return Value

This method does not return a value.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
Type LibraryWbemdisp.tlb
DLLWbemdisp.dll

Send comments about this topic to Microsoft

Build date: 11/3/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker