AssociatorNames()
You can use the AssociatorNames()
method to enumerate the names of the classes or instances that are associated
with a CIM object.
Parameters
Table 212 shows the parameters you can specify for
the AssociatorNames() method:
Table 212. AssociatorNames() parameters
|
Parameter |
Type |
Description |
| ObjectName |
COP |
Defines the class name or instances name that is the
source of the association. |
| AssocClass |
String |
If not NULL, indicates that all object paths returned
identify an object that is associated to the source object through an instance
of this class or one of its subclasses. |
| ResultClass |
String |
If not NULL, indicates that all returned object paths
must identify instances of this class or one of its subclasses or must be
this class. |
| Role |
String |
If not NULL, the name of the property in the association
class that refers to the source object must match the value of this parameter. |
| ResultRole |
String |
If not NULL, the name of the property in the association
class that refers to the returned object must match the value
of this parameter. |
Return values
The AssociatorNames() method enumerates the names of the classes or instances
or returns one of the following error codes:
- CIM_ERR_ACCESS_DENIED
- CIM_ERR_INVALID_NAMESPACE
- CIM_ERR_INVALID_PARAMETER
- CIM_ERR_FAILED