This document is archived and information here might be outdated. Recommended version. |
Elements in the network dataset corresponding to the given source objects.
[Visual Basic .NET] Public Function get_ElementsByOIDs ( _ ByVal SourceID As Integer, _ ByVal oids As ILongArray _ ) As IEnumNetworkElement
[C#] public IEnumNetworkElement get_ElementsByOIDs ( int SourceID, ILongArray oids );
[C++]
HRESULT get_ElementsByOIDs(
long SourceID,
ILongArray* oids,
IEnumNetworkElement** Elements
);
[C++]
Parameters SourceID [in]
SourceID is a parameter of type long oids [in]
oids is a parameter of type ILongArray* Elements [out, retval]
Elements is a parameter of type IEnumNetworkElement**
The SourceID parameter is the unique ID assigned to the NetworkSource in the network dataset.
The EnumNetworkElement enumeration object returned by the ElementsByOIDs 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.