Map Service HasLayerCache method

Determines if a given layer in a map (data frame) has a layer cache.

 

HasLayerCache(string MapName, int LayerID)

 

Parameter

Description

MapName

The name of the map (data frame) that contains a layer cache.

LayerID

The layer id of the layer on which a cache is available.

 

Return Value

 

A boolean indicating if the layer has a cache (true) or not (false).

 

Remarks

 

If the HasLayerCache method returns true, GetCacheName, GetLayerTile, and GetVirtualCacheDirectory methods can be used to return information and image tiles from a layer cache.

 

Examples

C#

VB.NET

Java