OLAPCube

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

#define EngineVersion 5.0
#define RuntimeVersion 5.0

void PrintOlapCubeNames()
{
    OLAPConnection olapconnection = OLAPCreateNamedConnection("");
    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.