ArcObjects Library Reference (Carto)  

IBasicMap.LayerCount Property

Number of layers in the map.

[Visual Basic .NET]
Public ReadOnly Property LayerCount As Integer
[C#]
public int LayerCount {get;}
[C++]
HRESULT get_LayerCount(
  long* pCount
);
[C++]

Parameters

pCount [out, retval]   pCount is a parameter of type long

Product Availability

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

See Also

IBasicMap Interface