IWbemClassObject interface
The IWbemClassObject interface contains and manipulates both class definitions and class object instances.
Members
The IWbemClassObject interface inherits from the IUnknown interface. IWbemClassObject also has these types of members:
Methods
The IWbemClassObject interface has these methods.
| Method | Description |
|---|---|
| BeginEnumeration |
Begins an enumeration of the properties. |
| BeginMethodEnumeration |
Begins an enumeration of methods for the object. |
| Clone |
Makes a copy of the current object. |
| CompareTo |
Tests two objects for equality. |
| Delete |
Removes the specified property from the object. |
| DeleteMethod |
Removes a method. |
| EndEnumeration |
Ends an enumeration begun with BeginEnumeration. |
| EndMethodEnumeration |
Ends the enumeration of methods for an object. |
| Get |
Gets a particular property value. |
| GetMethod |
Gets the in- and out-parameter definitions for a specific method. |
| GetMethodOrigin |
Reports the class in which a method is defined. |
| GetMethodQualifierSet |
Returns the qualifier set object for a specific method. |
| GetNames |
Obtains a list of the names of the properties in the object. |
| GetObjectText |
Obtains the textual rendition of the object in Managed Object Format (MOF) syntax. |
| GetPropertyOrigin |
Reports the class in which a particular property was introduced. |
| GetPropertyQualifierSet |
Allows access to the qualifiers of a particular property. |
| GetQualifierSet |
Allows access to the qualifier set of the entire object. |
| InheritsFrom |
Reports whether the current object inherits from a particular class. |
| Next |
Obtains the next property in an enumeration after an initial call to BeginEnumeration. |
| NextMethod |
Retrieves the next method definition in an enumeration of methods. |
| Put |
Updates or creates a particular property value. |
| PutMethod |
Creates a method. |
| SpawnDerivedClass |
Creates a new derived class from the current class. |
| SpawnInstance |
Creates a new instance from the current class. |
Remarks
Users and providers should never implement this interface. The implementation provided by WMI is the only one that is supported.
From the WMI client perspective, this interface is always in-process. Write (Put) operations only affect the local copy of the object, and read (Get) operations always retrieve values from the local copy. You can perform updates to WMI only when entire objects are read or written using methods on the IWbemServices interface. Examples of such updates are: IWbemServices::PutInstance or IWbemServices::PutClass.
Requirements
|
Minimum supported client |
Windows Vista |
|---|---|
|
Minimum supported server |
Windows Server 2008 |
|
Header |
|
|
IDL |
|
|
Library |
|
|
DLL |
|
|
CLSID |
CLSID_WbemClassObject is defined as 9A653086-174F-11d2-B5F9-00104B703EFD |
|
IID |
IID_IWbemClassObject is defined as dc12a681-737f-11cf-884d-00aa004b2e24 |
See also
- COM API for WMI
- Creating and Declaring an Instance Using C++
- Describing a Class Object Path
- Describing an Instance Object Path
- Making Calls to WMI