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


IEnumTrafficSpeeds.Next Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

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(
  BSTR* 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