| 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
Syntaxpublic long CreateDriver(
	string tag,
	long unitId,
	long depotId,
	Property[] properties
)
Public Function CreateDriver ( 
	tag As String,
	unitId As Long,
	depotId As Long,
	properties As Property()
) As Long
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
Examples
Property fname = new Property("FirstName", "Joe");
Property lname = new Property("LastName", "Bloggs");
...
Property[] d_props = new Property[] { fname, lname, ... };
long driverId = myService.CreateDriver("Electrician", 2609515, 675726, d_props); See Also
See Also