ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / SubnetworkManager Class / DisableController Method
Corresponds to the feature to be disabled as a SubnetworkController.

In This Topic
    DisableController Method
    In This Topic
    Disables a feature corresponding to device from being a SubnetworkController. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void DisableController( 
       Element device
    )
    Public Sub DisableController( _
       ByVal device As Element _
    ) 

    Parameters

    device
    Corresponds to the feature to be disabled as a SubnetworkController.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Remarks
    • This routine generates its own editing transaction and therefore cannot be wrapped inside a separate transaction.
    • If all subnetwork controllers are deleted from a subnetwork, the subnetwork moves to the SubnetworkStates.DirtyAndDeleted state.
    • When writing an ArcGIS Pro add-in, the extension method UtilityNetworkExtensions.DisableControllerInEditOperation should be used instead. This extension method will create an edit operation on the Pro undo/redo stack and redraw any affected layers.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also