This document is archived and information here might be outdated.  Recommended version.


ITiledMapServer.GetVirtualCacheDirectory Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IT > ITiledMapServer Interface > ITiledMapServer.GetVirtualCacheDirectory Method
ArcGIS Developer Help

ITiledMapServer.GetVirtualCacheDirectory Method

Gets the virtual cache directory for a given layer within a map.

[Visual Basic .NET]
Public Function GetVirtualCacheDirectory ( _
    ByVal MapName As String, _
    ByVal LayerID As Integer _
) As String
[C#]
public string GetVirtualCacheDirectory (
    string MapName,
    int LayerID
);
[C++]
HRESULT GetVirtualCacheDirectory(
  BSTR MapName,
  long LayerID
);
[C++]
Parameters
MapName [in]

MapName is a parameter of type BSTR LayerID [in]
LayerID is a parameter of type long

Product Availability

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

Remarks

This call retrieves the virtual directory that hosts the cache tiles for this map service. Use -1 as the layerid in order to get the virtual cache directory  for a map service that has a single fused cache. This is an optional property and may not always be present, for example, on a secure server or on an on demand server. If present then this is the preferred (most optimal) way for a client to retrieve tiles.

See Also

ITiledMapServer Interface