GetAvailableTopologiesAsync Method
Gets the list of available topologies for the map. This method must be called on the MCT. Use QueuedTask.Run.
Parameters
- map
- The map to retrieve the topology proeprties for.
Return Value
The list of topology properties for the map.
Get List of available topologies in the map
QueuedTask.Run(async () =>
{
var map = MapView.Active.Map;
//Get a list of all the available topologies for the map
var availableTopologies = await map.GetAvailableTopologiesAsync();
var gdbTopologies = availableTopologies.OfType<GeodatabaseTopologyProperties>();
var mapTopologies = availableTopologies.OfType<MapTopologyProperties>();
});
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.1 or higher.