Click or drag to resize
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
)

Parameters

driverId
Type: SystemInt64
Driver ID

Return Value

Type: Tag
An array of Tag objects associated with the specified Driver .
Remarks
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.
C#
// get *all* of our drivers
Driver[] drivers = myService.FindDrivers(null, null);
foreach (Driver d in drivers)
{
    // show the name of the driver
    Console.WriteLine("[{0}]", d.Name);
    // output each tag associated with the driver
    Tag[] tags = myService.ListDriverTags(d.ID);
    foreach (Tag t in tags)
    {
        Console.WriteLine("\t[{0}]", t.Name);
    }
    Console.WriteLine("");
}
See Also