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

IBasicMap2.LayerCount Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IB > IBasicMap2 Interface > IBasicMap2.LayerCount Property
ArcGIS Developer Help

IBasicMap2.LayerCount Property

Number of layers in the map.

[Visual Basic .NET]
Public ReadOnly Property LayerCount As Integer
public int LayerCount {get;}
HRESULT get_LayerCount(
  System.Int32* pCount
pCount [out, retval]

pCount is a parameter of type long*

Product Availability

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

See Also

IBasicMap2 Interface