ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ElevationLayerCreationParams Class / ElevationLayerCreationParams Constructor / ElevationLayerCreationParams Constructor(Uri)
A System.Uri represents the path or url to a dataset or .lyrx or .lpkx file.
Example Version

ElevationLayerCreationParams Constructor(Uri)
Creates a parameter object with System.Uri.
Syntax
public ElevationLayerCreationParams( 
   Uri elevationSourceUri
)

Parameters

elevationSourceUri
A System.Uri represents the path or url to a dataset or .lyrx or .lpkx file.
Example
Add an elevation source to an existing elevation surface layer
// wrap in QueuendTask.Run

// surfaceLayer could also be the ground layer

string uri = "https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer";
var createParams = new ElevationLayerCreationParams(new Uri(uri));
createParams.Name = "Terrain 3D";
var eleSourceLayer = LayerFactory.Instance.CreateLayer<Layer>(createParams, surfaceLayer);
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also