ArcGIS Pro 2.7 API Reference Guide
CanCreateMapFrom Method (MapFactory)

ArcGIS.Desktop.Mapping Namespace > MapFactory Class : CanCreateMapFrom Method
An ArcGIS.Desktop.Core.Item.
Indicates whether a map can be created from an Item.
Syntax
public bool CanCreateMapFrom( 
   Item item
)
Public Function CanCreateMapFrom( _
   ByVal item As Item _
) As Boolean

Parameters

item
An ArcGIS.Desktop.Core.Item.

Return Value

A boolean indicates that a map can be created from the item.
Remarks
You should use this method before passing an item to the MapFactory.CreateMapFromItem() method.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MapFactory Class
MapFactory Members