ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Editing Namespace / TopologyProperties Class
Members Example

In This Topic
    TopologyProperties Class
    In This Topic
    Represents a base set of properties to define a topology option. See GeodatabaseTopologyProperties, MapTopologyProperties or NoTopologyProperties.
    Syntax
    public abstract class TopologyProperties 
    Public MustInherit Class TopologyProperties 
    Example
    Get List of available topologies in the map
    QueuedTask.Run(async () =>
    {
      var map = MapView.Active.Map;
      //Get a list of all the available topologies for the map
      var availableTopologies = await map.GetAvailableTopologiesAsync();
    
      var gdbTopologies = availableTopologies.OfType<GeodatabaseTopologyProperties>();
      var mapTopologies = availableTopologies.OfType<MapTopologyProperties>();
    });
    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;
    Inheritance Hierarchy
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also