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

ITrafficDataManager.Insert Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITrafficDataManager Interface > ITrafficDataManager.Insert Method
ArcGIS Developer Help

ITrafficDataManager.Insert Method

Inserts the speed values per time slice for the specified TMC key.

[Visual Basic .NET]
Public Sub Insert ( _
    ByVal key As Integer, _
    ByVal pTimeSliceSpeeds As IDoubleArray _
public void Insert (
    uint key,
    IDoubleArray pTimeSliceSpeeds
  Unsigned long key,
  IDoubleArray* pTimeSliceSpeeds
key [in]

key is a parameter of type unsigned long pTimeSliceSpeeds [in]
pTimeSliceSpeeds is a parameter of type IDoubleArray*

Product Availability

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


StartEditing must be called before Insert and StopEditing, in order to begin the process of creating a dynamic traffic file. 

The Key value should be retrieved by passing a TMC to ConvertTMCToKey.   Keys are used to replace TMC values, in order to change the alpha-numeric TMC value into a unique unsigned integer.

pTimeSliceSpeeds is an array of double values that must have an equivalent number of entries as the value passed to TimeSliceCount in StartEditing.  The values in the array represent the speed associated with the TMC for each of the time slices.

See Also

ITrafficDataManager Interface