|
GPS ToolKit.NET
GetTracks Method
Gets all track logs from the GPS
Syntax
[Visual Basic]
object.GetTracks()
[C#]
object.GetTracks()
[C++]
object->GetTracks()
Parameters
object
An object expression that evaluates to a GPSToolKit object.
Return Value
A TrackCollection object containing all the track logs in the GPS
Remarks
- This method returns every track log stored in the GPS.
- This method is only supported when using the Garmin protocol.
- It is not possible to delete a track programmatically; deleting a track can only be done from the GPS unit.
- If there are many tracks in the GPS, or the track contains many points, this method may take some time to execute (if the track log is nearly full, this method may take several minutes to complete).
Errors
If using the NMEA 0183 protocol, this method will return a NotSupportedException exception.
Example
[Visual Basic]
' Get all tracks in the GPS
Dim GPSTracks As TrackCollection
GPSTracks = myGPSToolKit.GetTracks()
[C#]
// Get all tracks in the GPS
TrackCollection GPSTracks = myGPSToolKit.GetTracks();
[C++]
// Get all routes in the GPS
TrackCollection *GPSTracks = myGPSToolKit->GetTracks();
See Also
GPSToolKit.AddTrack method | TrackCollection class |
Track class
|