SetActiveTopologyAsync(Map,TopologyProperties) Method
Sets the active topology for the map to the set of specified topology properties.
Set the current topology by topologyProperties
// Sets the active topology for the specified map using the provided geodatabase topology properties.
var gdbTopoProperties = await activeMap.GetTopologyAsync("TopologyName") as GeodatabaseTopologyProperties;
if (activeMap.CanSetActiveTopology(gdbTopoProperties))
{
await activeMap.SetActiveTopologyAsync(gdbTopoProperties);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)
ArcGIS Pro version: 3.1 or higher.