ReferenceNames()
You can use the ReferenceNames()
method to enumerate the association objects that refer to a particular target
class or instance.
Parameters
Table 225 shows the parameters you can specify for
the ReferenceNames() method:
Table 225. ReferenceNames() 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 object paths
must be object paths of 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. |
Return values
The ReferenceNames() 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_NOT_FOUND
- CIM_ERR_NO_SUCH_PROPERTY
- CIM_ERR_FAILED