Parameters
- uri
- A System.Uri represents the path or url to a dataset or .lyrx or .lpkx file.
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 |
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"); } });
Target Platforms: Windows 11, Windows 10