ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MappingExtensions Class / ClearTopologyAsync Method
The map to clear the topology.
Example

In This Topic
    ClearTopologyAsync Method
    In This Topic
    Clears the active topology. That is; sets the active topology to "No Topology".
    Syntax
    public static Task<TopologyProperties> ClearTopologyAsync( 
       Map map
    )
    Public Shared Function ClearTopologyAsync( _
       ByVal map As Map _
    ) As Task(Of TopologyProperties)

    Parameters

    map
    The map to clear the topology.
    Example
    Set 'No Tpology' as the current topology
    if (map.CanClearTopology())
    {
      //Clears the topology of the map - no topology
      await map.ClearTopologyAsync();
    }
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also