ArcObjects Library Reference (GeoDatabase)  

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 _
)
[C#]
public void Insert (
    uint key,
    IDoubleArray pTimeSliceSpeeds
);
[C++]
HRESULT Insert(
  Unsigned long key,
  IDoubleArray* pTimeSliceSpeeds
);
[C++]

Parameters

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.

Remarks

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