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

TinLayerCreationParams Constructor(Uri)
Creates a parameter object with a System.Uri.
Syntax
public TinLayerCreationParams( 
   Uri uri
)

Parameters

uri
A System.Uri represents the path or url to a dataset or .lyrx or .lpkx file.
Remarks

Some sample paths to:

A TinDataset C:\Data\Hurricane_Tin

Example
Create a TinLayer
//Must be on the QueuedTask.Run()

string tinPath = @"d:\Data\Tin\TinDataset";
var tinURI = new Uri(tinPath);

var tinCP = new TinLayerCreationParams(tinURI);
tinCP.Name = "My TIN Layer";
tinCP.IsVisible = false;

//Create the layer to the TIN
var tinLayer = LayerFactory.Instance.CreateLayer<TinLayer>(tinCP, map);
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.2 or higher.
See Also