ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LayerFactory Class / CanCreateLayerFrom Method
An ArcGIS.Desktop.Core.Item

In This Topic
    CanCreateLayerFrom Method (LayerFactory)
    In This Topic
    Indicates whether a layer can be created from an Item.
    Syntax
    public bool CanCreateLayerFrom( 
       Item item
    )
    Public Function CanCreateLayerFrom( _
       ByVal item As Item _
    ) As Boolean

    Parameters

    item
    An ArcGIS.Desktop.Core.Item

    Return Value

    A boolean indicates that a layer can be created from the item.
    Remarks
    You should use this method before passing an item to LayerFactory.Instance.CreateLayer() method.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also