ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MappingExtensions Class / GetActiveTopologyAsync Method
The map to retrieve the topology properties for.
Example Version

GetActiveTopologyAsync Method
Gets the active topology properties from the map.
Syntax
public static Task<TopologyProperties> GetActiveTopologyAsync( 
   Map map
)

Parameters

map
The map to retrieve the topology properties for.
Exceptions
ExceptionDescription
Map is null.
Example
Get the properties of the active topology in the map
var map = MapView.Active.Map;
var activeTopologyProperties = await map.GetActiveTopologyAsync();
var isMapTopology = activeTopologyProperties is MapTopologyProperties;
var isGdbTopology = activeTopologyProperties is GeodatabaseTopologyProperties;
var isNoTopology = activeTopologyProperties is NoTopologyProperties;
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.1 or higher.
See Also