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


IMapLayers.AddLayer Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IMapLayers.AddLayer Method

Adds a layer to the map.

[Visual Basic .NET]
Public Sub AddLayer ( _
    ByVal Layer As ILayer _
)
[C#]
public void AddLayer (
    ILayer Layer
);
[C++]
HRESULT AddLayer(
  ILayer* Layer
);
[C++]

Parameters Layer [in]
Layer is a parameter of type ILayer

Product Availability

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

Remarks

Adds the layer to the map.

See Also

IMapLayers Interface