ArcObjects Library Reference (GeoDatabase)  

ITrafficDataManager.DeleteData Method

Deletes all dynamic traffic files in the specified folder which are older than the specified cutoff date.

[Visual Basic .NET]
Public Sub DeleteData ( _
    ByVal feedFolderPath As String, _
    ByVal utcCutoffDate As DateTime _
)
[C#]
public void DeleteData (
    string feedFolderPath,
    DateTime utcCutoffDate
);
[C++]
HRESULT DeleteData(
  BSTR feedFolderPath,
  DATE utcCutoffDate
);
[C++]

Parameters

feedFolderPath [in]   feedFolderPath is a parameter of type BSTR utcCutoffDate [in]   utcCutoffDate is a parameter of type DATE

Product Availability

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

Remarks

When real-time traffic is updated regularly, there is the potential for the dynamic traffic files to accumulate beyond what is needed.   Use DeleteData to clean up the dynamic traffic file folder to only contain the files referring to traffic after a specified date and time.

FeedFolderPath is a path to an existing directory that contains dynamic traffic files.

Any files that represent traffic from before the UTCCutoffDate will be deleted.

See Also

ITrafficDataManager Interface