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


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

INetworkQuery.EdgesBySegment Property

Edge elements in the network dataset with a from and to position included in the given range for the given source object.

[Visual Basic .NET]
Public Function get_EdgesBySegment ( _
    ByVal SourceID As Integer, _
    ByVal OID As Integer, _
    ByVal fromPosition As Double, _
    ByVal toPosition As Double _
) As IEnumNetworkElement
[C#]
public IEnumNetworkElement get_EdgesBySegment (
    int SourceID,
    int OID,
    double fromPosition,
    double toPosition
);
[C++]
HRESULT get_EdgesBySegment(
  long SourceID,
  long OID,
  double fromPosition,
  double toPosition,
  IEnumNetworkElement** Edges
);
[C++]
Parameters
SourceID [in]

SourceID is a parameter of type long OID [in]
OID is a parameter of type long fromPosition [in]
fromPosition is a parameter of type double toPosition [in]
toPosition is a parameter of type double Edges [out, retval]
Edges is a parameter of type IEnumNetworkElement**

Product Availability

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

Remarks

The SourceID parameter is the unique ID assigned to the NetworkSource in the network dataset.

The fromPosition and toPosition parameters refer to the positional values along the source feature from which this edge element was created.  The position values range from 0.0 to 1.0, where 0.0 is at the from-end of the feature and 1.0 is at the to-end of the feature.

The EnumNetworkElement enumeration object returned by the EdgesBySegment 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.

If the fromPosition parameter is greater than the toPosition parameter, the edge element(s) returned in the enumeration will be oriented in the esriNEDAgainstDigitized Direction.

See Also

INetworkQuery Interface