createObject

The createObject method of the Server class creates an instance of the COM component specified by the progID parameter.

public Object createObject(string progID);

Remarks

You should always use the createObject method to create instances of COM objects that your class needs. Furthermore, if you are creating any other Java objects that are registered with Microsoft® Transaction Server (MTS) and support transactions, you should create them using createObject rather than the new operator.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.