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


IMapCooker.AddLayer Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapCooker Interface > IMapCooker.AddLayer Method
ArcGIS Developer Help

IMapCooker.AddLayer Method

Adds a layer to the map cache.

[Visual Basic .NET]
Public Sub AddLayer ( _
    ByVal Name As String, _
    ByVal pLayer As ILayer _
)
[C#]
public void AddLayer (
    string Name,
    ILayer pLayer
);
[C++]
HRESULT AddLayer(
  BSTR Name,
  ILayer* pLayer
);
[C++]
Parameters
Name [in]

Name is a parameter of type BSTR pLayer [in]
pLayer is a parameter of type ILayer*

Product Availability

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

See Also

IMapCooker Interface