This document is archived and information here might be outdated.  Recommended version.


INetworkQuery.ElementCount Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkQuery Interface > INetworkQuery.ElementCount Property
ArcGIS Developer Help

INetworkQuery.ElementCount Property

Number of network elements of the given type in the network dataset.

[Visual Basic .NET]
Public Function get_ElementCount ( _
    ByVal ElementType As esriNetworkElementType _
) As Integer
[C#]
public int get_ElementCount (
    esriNetworkElementType ElementType
);
[C++]
HRESULT get_ElementCount(
  esriNetworkElementType ElementType,
  System.Int32* ElementCount
);
[C++]
Parameters
ElementType [in]

ElementType is a parameter of type esriNetworkElementType ElementCount [out, retval]
ElementCount is a parameter of type long*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The ElementCount is the number of network elements for the given network element type

Edges: The count of edges includes hyperedges, as well as both directions of edges that share the same EID.  For example, the edge with EID 1 and a direction of esriNetworkEdgeDirection.esriNEDAgainstDigitized and the edge with EID 1 and a direction of esriNetworkEdgeDirection.esriNEDAlongDigitized are counted as two separate edges. 

Junctions: Every junction in the network dataset is included in the junction count.

Turns: The count of turns only includes turn features.  Global turns are not included in the count.

See Also

INetworkQuery Interface