Associators() Intrinsic methods AssociatorNames()

You can use the Associators() method to enumerate the classes or instances that are associated with a CIM object.

Parameters

Table 211 shows the parameters you can specify for the Associators() method:

Table 211. Associators() parameters
Parameter Type Description
ObjectName COP* Defines the class name or instance name that is the source of the association
AssocClass String If not NULL, indicates that all objects must be 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 objects must be instances of this class or one of its subclasses or be this class.
Role String If not NULL, indicates that each return object must be associated to the source object through an association in which the source object plays the specified role. 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, indicates that each returned object must be associated to the source object through an association in which the returned object plays the specified role. That is, the name of the property in the association class that refers to the returned object must match 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.
* CIMObjectPath
Return values

The Associators() method enumerates the specified classes or instances or returns one of the following error codes:

(C) Copyright International Business Machines Corporation 2003, 2004