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

CanCreateLayerFrom Method (LayerFactory)
Indicates whether a layer can be created from an Item.
Syntax
public bool CanCreateLayerFrom( 
   Item item
)

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