ArcGIS Pro 2.9 API Reference Guide
CanAddToMap Method

ArcGIS.Desktop.Mapping Namespace > IMappableItem Interface : CanAddToMap Method
The maptype.
Gets whether the item can be added to a map of the specified mapType. Use this in conjuction with IMappableItemEx.
Syntax
bool CanAddToMap( 
   Nullable<MapType> mapType
)
Function CanAddToMap( _
   ByVal mapType As Nullable(Of MapType) _
) As Boolean

Parameters

mapType
The maptype.

Return Value

True if the item can be added to a map of the type. False otherwise.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

IMappableItem Interface
IMappableItem Members