Click or drag to resize
LegacyTelogisServiceCreateDriver Method
Print this page
Creates a new driver. The driver may be associated with a Unit , depot and be assigned user-configurable Property objects.

Namespace: Telogis.API
 
Syntax
public long CreateDriver(
	string tag,
	long unitId,
	long depotId,
	Property[] properties
)

Parameters

tag
Type: SystemString
User-configurable tag for this driver
unitId
Type: SystemInt64
ID of the Unit to associate the driver with
depotId
Type: SystemInt64
ID of a depot to associate with the driver
properties
Type: Telogis.APIProperty
See Properties for a list of property values that are recognized by Verizon Connect Fleet.

Return Value

Type: Int64
The ID of the created Driver
Examples
C#
// create properties of the new driver
Property fname = new Property("FirstName", "Joe");
Property lname = new Property("LastName", "Bloggs");
...
// create a new driver
Property[] d_props = new Property[] { fname, lname, ... };
long driverId = myService.CreateDriver("Electrician", 2609515, 675726, d_props);
See Also