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

In This Topic
    SetMapTopologyAsync Method
    In This Topic
    Sets the active topology to the map topolgoy.
    Syntax
    public static Task<TopologyProperties> SetMapTopologyAsync( 
       Map map
    )
    Public Shared Function SetMapTopologyAsync( _
       ByVal map As Map _
    ) As Task(Of TopologyProperties)

    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