Home > Dynamics Ax > List of the classes, which are implemented by interface.

List of the classes, which are implemented by interface.


Here is the following code to list out the classes, which are implemented by AifIntegrationAdapter interface.

static void getListOfImplementClasses(Args _args)
{
    SysDictClass                    dictClass;
    List                            dataContainerClassList;
    ListEnumerator                  le;
    classId                         dataClassId;
    str                             classnames;
    ;

    dictClass    = new SysDictClass(classnum(AifIntegrationAdapter));
    dataContainerClassList = dictClass.implementedBy();

    le = dataContainerClassList.getEnumerator();

    while (le.moveNext())
    {
        dataClassId = le.current();
        dictClass   = new SysDictClass(dataClassId);
        if (!dictClass.isInterface())
        {
            classnames += dictClass.name() +";";
        }
    }

    info(classnames);

}
Advertisements
Categories: Dynamics Ax
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: