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