Map service GetCacheDescriptionInfo method

Gets the cache description information for a given map. Includes cache control info, tile cache info, tile image info, and cache type info.

GetCacheDescriptionInfo(string MapName)




The map name (data frame) on which to return cache control information.

Return Value

A CacheDescriptionInfo object. If the map service is not cached, all properties will be null.


The CacheDescriptionInfo object includes a reference to the CacheControlInfo, TileCacheInfo, and TileImageInfo for a data frame in a map service. Information returned from this single method matches information returned from the GetCacheControlInfo, GetTileCacheInfo, and GetTileImageInfo methods. In addition, a cache type enumeration indicates if the map service has a fused or layer cache. This matches information returned from the HasLayerCache or HasSingleFusedMapCache methods.



MapService_MapServer mapservice = new MapService_MapServer();

mapservice.Url = "http://localhost:6080/arcgis/services/MapService/MapServer";


string mapname = mapservice.GetDefaultMapName();

CacheDescriptionInfo cachedescinfo = mapservice.GetCacheDescriptionInfo(mapname);


CacheControlInfo cachecontrolinfo = cachedescinfo.CacheControlInfo;

TileCacheInfo tilecacheinfo = cachedescinfo.TileCacheInfo;

TileImageInfo tileimginfo = cachedescinfo.TileImageInfo;

esriCachedMapServiceType cachetype = cachedescinfo.CacheType;


Dim mapservice As MapService_MapServer = New MapService_MapServer()

mapservice.Url = "http://localhost:6080/arcgis/services/MapService/MapServer"


Dim mapname As String = mapservice.GetDefaultMapName()

Dim cachedescinfo As CacheDescriptionInfo = mapservice.GetCacheDescriptionInfo(mapname)

Dim cachecontrolinfo As CacheControlInfo = cachedescinfo.CacheControlInfo

Dim tilecacheinfo As TileCacheInfo = cachedescinfo.TileCacheInfo

Dim tileimginfo As TileImageInfo = cachedescinfo.TileImageInfo


Dim cachetype As esriCachedMapServiceType = cachedescinfo.ServiceType