ArcGIS Pro 3.7 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

In This Topic
    TinLayerCreationParams Constructor(Uri)
    In This Topic
    Creates a parameter object with a System.Uri.
    Syntax
    Public Function New( _
       ByVal uri As Uri _
    )
    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
    {
      string tinPath = @"d:\Data\Tin\TinDataset";
      var tinURI = new Uri(tinPath);
    
      var tinCP = new TinLayerCreationParams(tinURI);
      tinCP.Name = "My TIN Layer";
      tinCP.IsVisible = false;
      // Note: Needs QueuedTask to run
      {
        //Create the layer to the TIN
        tinLayer = LayerFactory.Instance.CreateLayer<TinLayer>(tinCP, map);
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.2 or higher.
    See Also