XMLADimensionList

The XMLADimensionList data type represents a list of OLAP dimensions. You can use it as follows:

#define EngineVersion 5.0
#define RuntimeVersion 5.0

void XmlaPrintDimensions(XMLAConnection connection)
{
	XMLACubeList cubes = XMLAGetCubeList(connection);
	foreach (XMLACube cube in cubes)
	{
		XMLADimensionList dimensions = XMLAGetDimensionList(cube);
		WriteLine("Found cube " + XMLAGetCubeName(cube) + ". It has " + Count(dimensions) + " dimensions.");		
		foreach (XMLADimension dimension in dimensions)
		{
			WriteLine("    Found dimension " + XMLAGetDimensionName(dimension) + ".");
		}
	}	
}

The example above prints the names of all dimensions of all cubes that belong to an XMLA connection.