ArcGIS Pro 2.6 API Reference Guide
Parent Property (Layer)

ArcGIS.Desktop.Mapping Namespace > Layer Class : Parent Property
Gets the parent of the layer. It is either the group layer it belongs to, or the map for layers that do not belong in any group layers.
Syntax
public ILayerContainer Parent {get;}
Public ReadOnly Property Parent As ILayerContainer
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Layer Class
Layer Members