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

SetMapTopologyAsync Method
Sets the active topology to the map topolgoy.
Syntax
public static Task<TopologyProperties> SetMapTopologyAsync( 
   Map map
)

Parameters

map
The map to set the topology.
Exceptions
ExceptionDescription
 
Example
Set Map Topology as the current topology
if (map.CanSetMapTopology())
{
  //Set the topology of the map as map topology
  mapTopoProperties = await map.SetMapTopologyAsync() as MapTopologyProperties;
}
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.1 or higher.
See Also