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

In This Topic
    CanClearTopology Method
    In This Topic
    Gets if the active topology can be cleared. That is; the active topology cam be set to "No Topology".
    Syntax
    public static bool CanClearTopology( 
       Map map
    )
    Public Shared Function CanClearTopology( _
       ByVal map As Map _
    ) As Boolean

    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