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


IBasicMap.Layers Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IB > IBasicMap Interface > IBasicMap.Layers Property
ArcGIS Developer Help

IBasicMap.Layers Property

The layers in the map of the type specified in the uid. If recursive is true it will return layers in group layers.

[Visual Basic .NET]
Public Function get_Layers ( _
    [ByVal uid As UID], _
    [ByVal recursive As Boolean] _
) As IEnumLayer
[C#]
public IEnumLayer get_Layers (
    UID uid,
    bool recursive
);
[C++]
HRESULT get_Layers(
  IUID* uid,
  VARIANT_BOOL recursive,
  IEnumLayer** ppLayers
);
[C++]
Parameters
uid [in, optional, defaultvalue()]

uid is a parameter of type IUID* recursive [in, optional, defaultvalue()]
recursive is a parameter of type bool ppLayers [out, retval]
ppLayers is a parameter of type IEnumLayer**

Product Availability

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

See Also

IBasicMap Interface

.NET Samples

Updating the purge rule on a real-time temporal layer