ArcGIS Pro 2.7 API Reference Guide
CanAddSurfaceToMap Method

ArcGIS.Desktop.Mapping Namespace > Map Class : CanAddSurfaceToMap Method
Verifies if the given surface can be added to the map. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public bool CanAddSurfaceToMap( 
   CIMMapElevationSurface surface
)
Public Function CanAddSurfaceToMap( _
   ByVal surface As CIMMapElevationSurface _
) As Boolean

Parameters

surface

Return Value

Remarks
Each of the surface's underlying elevation sources is validated.
Note: An elevation surface with no elevation sources is valid and CanAddSurfaceToMap will return true. However, if a surface does have one or more elevation sources then their data connections must be valid
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Map Class
Map Members