ArcObjects Library Reference (Carto)  

IMapLayers.ClearLayers Method

Removes all layers from the map.

[Visual Basic .NET]
Public Sub ClearLayers ( _
)
[C#]
public void ClearLayers (
);
[C++]
HRESULT ClearLayers(
void
);

Product Availability

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

See Also

IMapLayers Interface