COM.interface Method [AX 2012]

Returns the interface that is associated with the COM object.

public ComInterface interface()

Run On

Called

Return Value

Type: ComInterface Extended Data Type
The interface that is associated with the COM object; 0 (zero) if no interface is associated with the COM object.

The following example shows how to retrieve the interface that is associated with a COM object.

// The obj variable was previously instantiated. 
info(strfmt("Interface: %1", obj.interface()));

Reference

Community Additions

ADD
Show: