This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see Why Migrate to InterSystems IRIS?

%Activate.GenericObject

class %Activate.GenericObject extends %Activate.IDispatch

This class provides functionality to create an ActiveX object, invoke its methods and Get/Set its properties by name.

Method Inventory

Methods

final classmethod CreateObject(Progid As %Library.String) as %RegisteredObject
This method is used to create a generic object given only its progid. If the object cannot be found an exception is thrown. The return value should be tested against $$$NULLOREF in the usual manner to ensure that the object has been successfully created
final classmethod GetObject(Moniker As %Library.String) as %RegisteredObject
This method is used to create a generic object from a moniker. If the object cannot be found an exception is thrown. The return value should be tested against $$$NULLOREF in the usual manner to ensure that the object has been successfully created.

Inherited Members

Inherited Properties

Inherited Methods

Feedback