|  | This document is archived and information here might be outdated. Recommended version. | 
| ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IT > ITiledMapServer Interface > ITiledMapServer.HasLayerCache Method (ArcObjects .NET 10.5 SDK) | 
Indicates if a given layer has a single tile cache.
[Visual Basic .NET] Public Function HasLayerCache ( _ ByVal MapName As String, _ ByVal LayerID As Integer _ ) As Boolean
[C#] public bool HasLayerCache ( string MapName, int LayerID );
[C++]
HRESULT HasLayerCache(
  BSTR MapName,
  long LayerID,
  VARIANT_BOOL* pHasCache
);
[C++]
Parameters MapName [in] MapName is a parameter of type BSTR LayerID [in] LayerID is a parameter of type long pHasCache [out, retval] pHasCache is a parameter of type VARIANT_BOOL
Use this method to discover if a particular layer in a map service with a multi layer cache is cached or not. If IsFixedScaleMap is true and HasSingleFusedMapCache is false, then the map service has a multi layer cache that is made up of individual layer caches. Not all layers in such a map service need be cached.