CreateInstance() Intrinsic methods DeleteInstance()

You can use the CreateInstance() method to create a new instance of an object in the target namespace. The new instance must be based on a class that is already defined in the namespace.

Parameters

Table 213 shows the parameters you can specify for CreateInstance() method:

Table 213. CreateInstance() parameters
Parameter Type Description
Instance String Defines the name of the instance to create
Return values

The CreateInstance() method creates the specified class or returns one of the following error codes:

(C) Copyright International Business Machines Corporation 2003, 2004