EnumerateInstances() Intrinsic methods EnumerateInstanceNames()

You can use the EnumerateInstances() method to enlist all instances of the same object class in the target namespace.

Parameters

Table 217 shows the parameters you can specify for the EnumerateInstances() method:

Table 217. EnumerateInstances() parameters
Parameter Type Description
ClassName String Defines the name of the class for which instances are to be returned.
DeepInheritance Boolean TRUE returns all instances and all properties of the instance, including those added by creating subclasses. FALSE returns only properties defined for the specified class.
LocalOnly Boolean TRUE returns all properties, methods, and qualifiers that are overridden within the definition of the class.
IncludeQualifiers Boolean TRUE returns all qualifiers for each instance, its properties, methods, or method parameters. FALSE returns no qualifiers
IncludeClassOrigin Boolean TRUE returns the CLASSORIGIN attribute of the class within the instance.
Return values

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

(C) Copyright International Business Machines Corporation 2003, 2004