ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MappingExtensions Class / CanSetActiveTopology Method / CanSetActiveTopology(Map,TopologyProperties) Method
The map to set the topology.
A ArcGIS.Desktop.Editing.TopologyProperties
Example Version

CanSetActiveTopology(Map,TopologyProperties) Method
Gets if the active topology can be set. Topologies are only supprted for 2D non-stereo maps.
Syntax
public static bool CanSetActiveTopology( 
   Map map,
   TopologyProperties topologyProperties
)

Parameters

map
The map to set the topology.
topologyProperties
A ArcGIS.Desktop.Editing.TopologyProperties
Example
Set the current topology by topologyProperties
if (map.CanSetActiveTopology(gdbTopoProperties))
{
  await map.SetActiveTopologyAsync(gdbTopoProperties);
}
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.1 or higher.
See Also