public static Task<TopologyProperties> GetActiveTopologyAsync( Map map )
Public Shared Function GetActiveTopologyAsync( _ ByVal map As Map _ ) As Task(Of TopologyProperties)
Parameters
- map
- The map to retrieve the topology properties for.
public static Task<TopologyProperties> GetActiveTopologyAsync( Map map )
Public Shared Function GetActiveTopologyAsync( _ ByVal map As Map _ ) As Task(Of TopologyProperties)
Exception | Description |
---|---|
System.ArgumentNullException | Map is null. |
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;
Target Platforms: Windows 11, Windows 10