This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMap Interface > IMap.DeleteLayer Method (ArcObjects .NET 10.4 SDK) |
Deletes a layer from the map.
[Visual Basic .NET] Public Sub DeleteLayer ( _ ByVal Layer As ILayer _ )
[C#] public void DeleteLayer ( ILayer Layer );
[C++]
HRESULT DeleteLayer(
ILayer* Layer
);
[C++]
Parameters Layer [in]
Layer is a parameter of type ILayer