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

In This Topic
    CanSetActiveTopology(Map,TopologyProperties) Method
    In This Topic
    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
    )
    Public Overloads Shared Function CanSetActiveTopology( _
       ByVal map As Map, _
       ByVal topologyProperties As TopologyProperties _
    ) As Boolean

    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