ArcObjects Library Reference (Carto)  

IBasicMap.DeleteLayer Method

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

Product Availability

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

See Also

IBasicMap Interface