OLAPCube

To access a single OLAP cube, use the OLAPCube data type:

#define EngineVersion 2.0
#define RuntimeVersion 2.0

void PrintOlapCubeNames()
{
    OLAPConnection olapconnection = OLAPCreateConnection(
        "LOCAL/Application Engine", "Admin", ""
    );
    OLAPCubeList cubes = OLAPGetCubeList(olapconnection);
    foreach (OLAPCube cube in cubes)
    {
        WriteLine("Found cube " + OLAPGetCubeName(cube) + ".");
    }
    OLAPDisconnect(olapconnection);
}

To initialize an OLAPCube object, you must use it in a foreach statement.

This data type is only available in engine versions 2.0 and above.