ArcObjects Library Reference  (Carto)    

ITiledMapServer.HasLayerCache Method

Indicates if a given layer has a single tile cache.

[Visual Basic 6.0]
Function HasLayerCache(
    ByVal MapName As String, _
    ByVal LayerID As Long _
) As Boolean
[Visual Basic .NET]
Public Function HasLayerCache ( _
    ByVal MapName As String, _
    ByVal LayerID As Integer _
) As Boolean
[C#]
public bool HasLayerCache (
    string MapName,
    int LayerID
);
[Java]
public Boolean hasLayerCache (
    String MapName,
    int LayerID
)
throws
    IOException,
    AutomationException
[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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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.

See Also

ITiledMapServer Interface