Parameters
- uri
- A System.Uri represents the path or url to a dataset or .lyrx or .lpkx file.
Some sample paths to:
| A Topology in a FileGeodatabase | C:\Data\MyFileGDB.gdb\Backcountry\Backcountry_Topology |
| A Topology from a SDE | C:\Connections\MySDEConnection.sde\Backcountry\Backcountry_Topology |
{
var path = @"D:\Data\CommunitySamplesData\Topology\GrandTeton.gdb\BackCountry\Backcountry_Topology";
var lcp = new TopologyLayerCreationParams(new Uri(path));
lcp.Name = "GrandTeton_Backcountry";
lcp.AddAssociatedLayers = true;
//Note: Needs QueuedTask to run
var topoLayer = LayerFactory.Instance.CreateLayer<ArcGIS.Desktop.Mapping.TopologyLayer>(lcp, MapView.Active.Map);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)