|  | 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.GetCacheName Method (ArcObjects .NET 10.5 SDK) | 
Gets the cache name for a given layer within a map.
[Visual Basic .NET] Public Function GetCacheName ( _ ByVal MapName As String, _ ByVal LayerID As Integer _ ) As String
[C#] public string GetCacheName ( string MapName, int LayerID );
[C++]
HRESULT GetCacheName(
  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