Interface IDEUtilityNetwork

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

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

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("911DBBD5-4EA9-4EA4-99F2-447055CC2BAD")]
public interface IDEUtilityNetwork

Properties

Categories

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

IArray Categories { get; }

Property Value

IArray

DomainNetworks

Returns the array of domain networks in this utility network.

IArray DomainNetworks { get; }

Property Value

IArray

ServiceTerritoryFeatureClassName

Returns the service territory feature class name.

string ServiceTerritoryFeatureClassName { get; }

Property Value

string

Remarks

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

[C#]

// 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;

    }                       

  }

}

ServiceTerritoryFeatureLayerID

Returns the service territory feature layer ID.

int ServiceTerritoryFeatureLayerID { get; }

Property Value

int

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.

SystemJunctionObjectSource

Returns the system junction object source in this utility network.

INetworkSource SystemJunctionObjectSource { get; }

Property Value

INetworkSource

TerminalConfigurationByID[int]

Returns the terminal configuration by ID.

ITerminalConfiguration TerminalConfigurationByID[int ID] { get; }

Parameters

ID int

Property Value

ITerminalConfiguration

TerminalConfigurations

Returns the array of terminal configurations in the utility network.

IArray TerminalConfigurations { get; }

Property Value

IArray