TrafficFetcherGetLatestTraffic Method (TimeSpan) | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Namespace:
Telogis.GeoBase.Traffic
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public Traffic GetLatestTraffic(
TimeSpan timeout
)
Public Function GetLatestTraffic (
timeout As TimeSpan
) As Traffic
Parameters
- timeout
- Type: SystemTimeSpan
The maximum time to wait (block) for the traffic sources to be updated. Set to -1 milliseconds to wait indefinitely. Set to 0 to return immediately.
Return Value
Type:
TrafficReturns a
Traffic based on the newly retrieved traffic data.
Exceptions Remarks
Fetches the latest Traffic data.
If timeout is TimeSpan.Zero this function will return immediately. The TrafficUpdated event may be fired multiple times as updates are received.
If timeout is not TimeSpan.Zero this function will wait until all traffic sources have been updated or the timeout expires. The TrafficUpdated
event may be fired multiple times as updates are received. Use -1 Milliseconds to indicate to wait indefinately.
See Also