ArcGIS Pro 3.7 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 Shared Function ClearTopologyAsync( _
       ByVal map As Map _
    ) As Task(Of TopologyProperties)
    public static Task<TopologyProperties> ClearTopologyAsync( 
       Map map
    )

    Parameters

    map
    The map to clear the topology.
    Example
    Set 'No Topology' as the current topology
    // Removes the current topology from the specified map asynchronously, setting it to have no topology.
    if (activeMap.CanClearTopology())
    {
      //Clears the topology of the map - no topology
      await activeMap.ClearTopologyAsync();
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.1 or higher.
    See Also