ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / KnowledgeGraphLayer Class / CanRemoveLayers Method
An enumerable of Layers to be removed.

In This Topic
    CanRemoveLayers Method (KnowledgeGraphLayer)
    In This Topic
    Determines if the layers can be removed from the container. Sublayers can be removed only if the knowledgegraph layer is on a map.
    Syntax
    public bool CanRemoveLayers( 
       IEnumerable<Layer> layers
    )
    Public Function CanRemoveLayers( _
       ByVal layers As IEnumerable(Of Layer) _
    ) As Boolean

    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, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also