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 properties for.
Return Value
The list of topology properties for the map.
Get List of available topologies in the map
// Retrieves and processes the list of available topologies in the active map.
await 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 Home, Pro, Enterprise (64 bit)
ArcGIS Pro version: 3.1 or higher.