ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IMapFactory Interface / CanCreateMapFrom Method
An ArcGIS.Desktop.Core.Item.

In This Topic
    CanCreateMapFrom Method (IMapFactory)
    In This Topic
    Determines whether a map can be created from an Item.
    Syntax
    bool CanCreateMapFrom( 
       Item item
    )
    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 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also