ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ILayerContainerEdit Interface / CanRemoveLayers Method
An enumerable of Layers to be removed.

In This Topic
    CanRemoveLayers Method (ILayerContainerEdit)
    In This Topic
    Determins if the layers can be removed from the container.
    Syntax
    Function CanRemoveLayers( _
       ByVal layers As IEnumerable(Of Layer) _
    ) As Boolean
    bool CanRemoveLayers( 
       IEnumerable<Layer> layers
    )

    Parameters

    layers
    An enumerable of Layers to be removed.

    Return Value

    True if the layers can be removed. False otherwise.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.3 or higher.
    See Also