References()
You can use the References()
method to enumerate the association objects that refer to a particular target
class or instance.
Parameters
Table 224 shows the parameters you can specify for
the References() method:
Table 224. References() parameters
|
Parameter |
Type |
Description |
| ObjectName |
String |
Defines the class name or instance name whose referring
objects are to be returned. |
| ResultClass |
String |
If not NULL, indicates that all returned objects must
be instances of this class or one of its subclasses or must be this class. |
| Role |
String |
If not NULL, must be a valid property name. Each returned
object must refer to the target object through a property whose name matches
the value of this parameter. |
| IncludeQualifiers |
Boolean |
TRUE returns all qualifiers for the class, its properties,
methods, or method parameters. FALSE returns no qualifiers. |
| IncludeClassOrigin |
Boolean |
TRUE returns the CLASSORIGIN attribute of the class. |
Return values
The References() method enumerates the association objects or returns one
of the following error codes:
- CIM_ERR_ACCESS_DENIED
- CIM_ERR_INVALID_NAMESPACE
- CIM_ERR_INVALID_PARAMETER
- CIM_ERR_INVALID_CLASS
- CIM_ERR_FAILED