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


IBasicMap.AddLayer Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IBasicMap.AddLayer Method

Adds a layer to the map.

[Visual Basic .NET]
Public Sub AddLayer ( _
    ByVal pLayer As ILayer _
)
[C#]
public void AddLayer (
    ILayer pLayer
);
[C++]
HRESULT AddLayer(
  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

.NET Snippets

Load Force Element Layer | Load Tactical Graphic Layer