Image service GetVirtualCacheDirectory method

Gets the virtual directory containing the cache tiles for a given cached image service.

Return Value

A string representing the URL to a virtual directory containing cached tile images. If the image service does not have a virtual cache directory, the method will return an exception.


To determine if you are working with an image service that has a cache, use the IsFixedScaleImage() method.

The virtual directory for a cached image service follows the pattern <base url>\<image service name>\_alllayers. Once defined, the virtual cache directory will work only for cached services where the storage format is exploded. If the cache is stored in compact storage format, this property will be ignored.