This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapLayers Interface > IMapLayers.Layers Property (ArcObjects .NET 10.4 SDK) |
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 );
Optional Values
[C++]
HRESULT get_Layers(
IUID* uid,
VARIANT_BOOL recursive,
IEnumLayer** Layers
);
[C++]
Parameters uid [in, optional, defaultvalue(0)]
uid is a parameter of type IUID recursive [in, optional, defaultvalue(VARIANT_TRUE)] recursive is a parameter of type VARIANT_BOOL Layers [out, retval]
Layers is a parameter of type IEnumLayer