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

In This Topic
    GetActiveTopologyAsync Method
    In This Topic
    Gets the active topology properties from the map.
    Syntax
    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.
    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