The deployment cache path of a layer by index.
[Visual Basic .NET] Public Sub GetCachePathByIndex ( _ ByVal iLayer As Integer, _ ByRef pPath As String, _ ByRef foldername As String _ )
[C#] public void GetCachePathByIndex ( int iLayer, ref string pPath, ref string foldername );
Product Availability
Available with ArcGIS Desktop. Requires 3D Analyst Extension.