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


INetworkQuery.Elements 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.Elements Property
ArcGIS Developer Help

INetworkQuery.Elements Property

Enumeration of all elements in the network dataset of the given type.

[Visual Basic .NET]
Public Function get_Elements ( _
    ByVal ElementType As esriNetworkElementType _
) As IEnumNetworkElement
[C#]
public IEnumNetworkElement get_Elements (
    esriNetworkElementType ElementType
);
[C++]
HRESULT get_Elements(
  esriNetworkElementType ElementType,
  IEnumNetworkElement** Elements
);
[C++]
Parameters
ElementType [in]

ElementType is a parameter of type esriNetworkElementType Elements [out, retval]
Elements is a parameter of type IEnumNetworkElement**

Product Availability

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

Remarks

The EnumNetworkElement enumeration object returned by the Elements property is recycling.  For enumerations with more than one network element returned, this means that the network element object returned by the first call to Next is expected to be reused in subsequent calls to Next.

For edge elements, the element(s) returned in the enumeration will be oriented in the esriNEDAlongDigitized Direction.  To get the edge element in the esriNEDAgainstDigitized Direction, call INetworkEdge::QueryEdgeInOtherDirection on the returned edge.

See Also

INetworkQuery Interface