ArcGIS Pro 2.6 API Reference Guide
DisableControllerInEditOperation Method

ArcGIS.Core.Data.UtilityNetwork.Extensions Namespace > UtilityNetworkExtensions Class : DisableControllerInEditOperation Method
The ArcGIS.Core.Data.UtilityNetwork.SubnetworkManager instance used to disable a controller.
Corresponds to the feature to be disabled as a ArcGIS.Core.Data.UtilityNetwork.SubnetworkController.
Disables a feature corresponding to device from being a ArcGIS.Core.Data.UtilityNetwork.SubnetworkController. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public static void DisableControllerInEditOperation( 
   SubnetworkManager subnetworkManager,
   Element device
)
Public Shared Sub DisableControllerInEditOperation( _
   ByVal subnetworkManager As SubnetworkManager, _
   ByVal device As Element _
) 

Parameters

subnetworkManager
The ArcGIS.Core.Data.UtilityNetwork.SubnetworkManager instance used to disable a controller.
device
Corresponds to the feature to be disabled as a ArcGIS.Core.Data.UtilityNetwork.SubnetworkController.
Exceptions
ExceptionDescription

The active ArcGIS.Desktop.Mapping.MapView is unavailable.

-or-

The ArcGIS.Desktop.Mapping.UtilityNetworkLayer is unavailable.

This method must be called on the Main CIM Thread. Use QueuedTask.Run.
A geodatabase-related exception has occurred.
Remarks

If this operation is successful, it will invalidate the affected layers and cause the ArcGIS.Desktop.Mapping.MapView to redraw.

If all subnetwork controllers are deleted from a subnetwork, the subnetwork moves to the ArcGIS.Core.Data.UtilityNetwork.SubnetworkStates.DirtyAndDeleted state.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

UtilityNetworkExtensions Class
UtilityNetworkExtensions Members