OLAPCubeList
To access all cubes that belong to a certain
OLAPConnection
, use the
OLAPCubeList
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);
}
This data type is only available in engine versions 2.0 and above.