ArcGIS Pro 2.6 API Reference Guide
EnableController Method

ArcGIS.Core.Data.UtilityNetwork Namespace > SubnetworkManager Class : EnableController Method
The Tier to which the Subnetwork is created.
Corresponds to the feature to be enabled as a SubnetworkController. This Element must specify a terminal, and this terminal must be specified as a Controller Terminal in the terminal definition.
Name of the subnetwork.
Name of the subnetwork controller.
A description for the subnetwork controller.
Additional notes for the subnetwork controller.
Enables a feature corresponding to device to be a SubnetworkController and adds it to an existing Subnetwork corresponding to subnetworkName. If the specified subnetwork does not exist, a new one will be created. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Function EnableController( _
   ByVal tier As Tier, _
   ByVal device As Element, _
   ByVal subnetworkName As String, _
   ByVal controllerName As String, _
   ByVal description As String, _
   ByVal notes As String _
) As Subnetwork

Parameters

tier
The Tier to which the Subnetwork is created.
device
Corresponds to the feature to be enabled as a SubnetworkController. This Element must specify a terminal, and this terminal must be specified as a Controller Terminal in the terminal definition.
subnetworkName
Name of the subnetwork.
controllerName
Name of the subnetwork controller.
description
A description for the subnetwork controller.
notes
Additional notes for the subnetwork controller.

Return Value

The newly-created or modified subnetwork.
Exceptions
ExceptionDescription
If the Terminal in device is null and the associated TerminalConfiguration has multiple terminals.
A geodatabase-related exception has occurred.
Remarks
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

SubnetworkManager Class
SubnetworkManager Members