IDEUtilityNetwork Interface

Provides access to members that supply utility network data element information.

Members

Name Description
Read-only property Categories Returns the categories of the utility network. The 'Subnetwork Source' and 'Subnetwork Sink' categories are always included.
Read-only property DomainNetworks Returns the array of domain networks in this utility network.
Read-only property ServiceTerritoryFeatureClassName Returns the service territory feature class name.
Read-only property ServiceTerritoryFeatureLayerID Returns the service territory feature layer ID.
Read-only property SystemJunctionObjectSource Returns the system junction object source in this utility network.
Read-only property TerminalConfigurationByID Returns the terminal configuration by ID.
Read-only property TerminalConfigurations Returns the array of terminal configurations in the utility network.

IDEUtilityNetwork.Categories Property

Returns the categories of the utility network. The 'Subnetwork Source' and 'Subnetwork Sink' categories are always included.

Public ReadOnly Property Categories As IArray
public IArray Categories {get;}

Description

An array to hold an indexed collection of IUNCategory.

IDEUtilityNetwork.DomainNetworks Property

Returns the array of domain networks in this utility network.

Public ReadOnly Property DomainNetworks As IArray
public IArray DomainNetworks {get;}

Description

An array to hold an indexed collection of IDomainNetwork.

IDEUtilityNetwork.ServiceTerritoryFeatureClassName Property

Returns the service territory feature class name.

Public ReadOnly Property ServiceTerritoryFeatureClassName As String
public string ServiceTerritoryFeatureClassName {get;}

Remarks

The following code shows how to retrieve the service territory layer ID based on the feature class name:

// The following code shows how to retrieve the service territory layer ID based on the feature class name

int unServiceTerritoryLayerID = -1;



// Get the service territory feature class name

IDatasetComponent dsComponent = (IDatasetComponent)unDataset;

IDEDataset dataElement = dsComponent.DataElement;

IDEBaseNetwork bnDataElement = (IDEBaseNetwork)dataElement;

IDEUtilityNetwork unDataElement = (IDEUtilityNetwork)bnDataElement;

string unTerritoryFCName = unDataElement.ServiceTerritoryFeatureClassName;



// Get all layers from map service

IMapServer ms = (MapServer)serverObjectHelper.ServerObject;

IMapServerDataAccess mapServerDataAccess = (IMapServerDataAccess)serverObjectHelper.ServerObject;

IMapServerInfo mapServerInfo = ms.GetServerInfo(ms.DefaultMapName);

IMapLayerInfos layerInfos = mapServerInfo.MapLayerInfos;



// Loop through layers and get the feature class for which name corresponds to the service territory's

for (int i = 0; i < layerInfos.Count; i++)

{

  IMapLayerInfo layerInfo = layerInfos.Element[i];

  if (layerInfo.Type.Equals("Feature Layer", StringComparison.OrdinalIgnoreCase))

  {

    IFeatureClass fc = (IFeatureClass)mapServerDataAccess.GetDataSource(ms.DefaultMapName, layerInfo.ID);

    IDataset ds = (IDataset)fc;



    if(ds.Name == unDataElement.ServiceTerritoryFeatureClassName)

    {

      unServiceTerritoryLayerID = layerInfo.ID;

      break;

    }                        

  }

}

IDEUtilityNetwork.ServiceTerritoryFeatureLayerID Property

Returns the service territory feature layer ID.

Public ReadOnly Property ServiceTerritoryFeatureLayerID As Integer
public int ServiceTerritoryFeatureLayerID {get;}

Remarks

For internal use only. This property will always return -1 when called from the Enterprise SDK. The service territory feature class name (IDEUtilityNetwork::ServiceTerritoryFeatureClassName) should instead be used to retrieve the layer ID.

IDEUtilityNetwork.SystemJunctionObjectSource Property

Returns the system junction object source in this utility network.

Public ReadOnly Property SystemJunctionObjectSource As INetworkSource
public INetworkSource SystemJunctionObjectSource {get;}

IDEUtilityNetwork.TerminalConfigurationByID Property

Returns the terminal configuration by ID.

Public Function get_TerminalConfigurationByID ( _
    ByVal ID As Integer _
) As ITerminalConfiguration
public ITerminalConfiguration get_TerminalConfigurationByID (
    int ID
);

IDEUtilityNetwork.TerminalConfigurations Property

Returns the array of terminal configurations in the utility network.

Public ReadOnly Property TerminalConfigurations As IArray
public IArray TerminalConfigurations {get;}

Description

An array to hold an indexed collection of ITerminalConfiguration.

Classes that implement IDEUtilityNetwork

Classes Description

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.