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


IEnumTrafficSpeeds.Next Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IE > IEnumTrafficSpeeds Interface > IEnumTrafficSpeeds.Next Method
ArcGIS Developer Help

IEnumTrafficSpeeds.Next Method

Retrieve next record in speed data. The values correspond to time slices.

[Visual Basic .NET]
Public Sub Next ( _
    ByRef pKey As String, _
    ByRef ppValues As IVariantArray _
)
[C#]
public void Next (
    ref string pKey,
    ref IVariantArray ppValues
);
[C++]
HRESULT Next(
  System.String* pKey,
  IVariantArray** ppValues
);
[C++]
Parameters
pKey [out]

pKey is a parameter of type BSTR* ppValues [out]
ppValues is a parameter of type IVariantArray**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

The key value should be a TMC entry associated with a given section of road. 

The values array is an array of speeds.  There should be one speed entry for every time slice in the TimeSlices array property of IEnumTrafficSpeeds.  The speeds should be short integers (Int16 in .NET).

See Also

IEnumTrafficSpeeds Interface