OLAPDimensionList
To browse all dimensions of an OLAP cube, use the
OLAPDimensionList
data type:
#define EngineVersion 2.0
#define RuntimeVersion 2.0
void PrintOlapDimensionNames()
{
OLAPConnection olapconnection = OLAPCreateConnection(
"LOCAL/Application Engine", "Admin", ""
);
foreach (OLAPCube cube in OLAPGetCubeList(olapconnection))
{
WriteLine("Found cube " + OLAPGetCubeName(cube) + ".");
OLAPDimensionList dimensions = OLAPGetDimensionList(cube);
foreach (OLAPDimension dimension in dimensions)
{
WriteLine("Found dimension " + dimension + ".");
}
}
OLAPDisconnect(olapconnection);
}
This data type is only available in engine versions 2.0 and above.