CatalogLayerCreationParams Constructor(Uri)
Creates a parameter object with a
System.Uri.
Create Catalog Layer using Uri to a Catalag Feature Class
//Note: Call within QueuedTask.Run()
var createParams = new CatalogLayerCreationParams(new Uri(@"C:\CatalogLayer\CatalogDS.gdb\HurricaneCatalogDS"));
//Set the definition query
createParams.DefinitionQuery = new DefinitionQuery("Query1", "cd_itemname = 'PuertoRico'");
//Set name of the new Catalog Layer
createParams.Name = "PuertoRico";
//Create Layer
var catalogLayer = LayerFactory.Instance.CreateLayer<CatalogLayer>(createParams, MapView.Active.Map);
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.1 or higher.