This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IB > IBasicMap2 Interface > IBasicMap2.AddLayer Method (ArcObjects .NET 10.5 SDK) |
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