ArcObjects Library Reference (Carto)  

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,
  BSTR* pURL
);
[C++]

Parameters

MapName [in]   MapName is a parameter of type BSTR LayerID [in]   LayerID is a parameter of type long pURL [out, retval]   pURL is a parameter of type BSTR

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