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

In This Topic
    ParcelLayerCreationParams Constructor(Uri)
    In This Topic
    Creates a parameter object with a System.Uri.
    Syntax
    public ParcelLayerCreationParams( 
       Uri uri
    )
    Public Function New( _
       ByVal uri As 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 parcel dataset in a FileGeodatabase C:\Data\MyFileGDB.gdb\Backcountry\Backcountry_ParcelDataset
    A parcel dataset from a SDE C:\Connections\MySDEConnection.sde\Backcountry\Backcountry_ParcelDataset

    Example
    Add a Parcel Layer to the map
    string path = @"C:\MyTestData\MyFileGeodatabase.gdb\MyFeatureDS\MyFabric";
    await QueuedTask.Run(() =>
    {
      var lyrCreateParams = new ParcelLayerCreationParams(new Uri(path));
      try
      {
        var parcelLayer = LayerFactory.Instance.CreateLayer<ParcelLayer>(
          lyrCreateParams, MapView.Active.Map);
      }
      catch (Exception ex)
      {
        MessageBox.Show(ex.Message, "Add Parcel Fabric Layer");
      }
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also