LegacyTelogisServiceListDriverTags Method |
Print this page
Gets all the
Tag
objects associated with a given driver.
You should use tags to sort and group your drivers, typically by skillset
or equipment.
Namespace: Telogis.API Syntax public Tag[] ListDriverTags(
long driverId
)
Public Function ListDriverTags (
driverId As Long
) As Tag()
Parameters
- driverId
- Type: SystemInt64
Driver ID
Return Value
Type:
Tag
An array of
Tag
objects associated with the specified
Driver
.
Remarks
To fetch an array of all the tags use the
ListTags
method.
Examples
The following code snippet lists all drivers and tags associated
with each driver. If you have a large number of drivers consider
using Service.ListDrivers(offset, count) to fetch only a subset
of all your drivers.
Driver[] drivers = myService.FindDrivers(null, null);
foreach (Driver d in drivers)
{
Console.WriteLine("[{0}]", d.Name);
Tag[] tags = myService.ListDriverTags(d.ID);
foreach (Tag t in tags)
{
Console.WriteLine("\t[{0}]", t.Name);
}
Console.WriteLine("");
}
See Also