ArcGIS Pro 2.8 API Reference Guide
CanCreateLayerFrom Method (LayerFactory)

ArcGIS.Desktop.Mapping Namespace > LayerFactory Class : CanCreateLayerFrom Method
An ArcGIS.Desktop.Core.Item
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 10, Windows 8.1

See Also

Reference

LayerFactory Class
LayerFactory Members