OnTime Extension SDK Documentation
OnTime.Extensions.SDK Namespace / DataAccess Class / GetVehicleType Method / GetVehicleType(String) Method
The name of the VehicleType.



In This Topic
    GetVehicleType(String) Method
    In This Topic
    Retrieves a single VehicleType object assigned to a given name.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetVehicleType( _
       ByVal vehicleTypeName As String _
    ) As Vehicle.VehicleType
    'Usage
     
    
    Dim instance As DataAccess
    Dim vehicleTypeName As String
    Dim value As Vehicle.VehicleType
     
    value = instance.GetVehicleType(vehicleTypeName)
    public Vehicle.VehicleType GetVehicleType( 
       string vehicleTypeName
    )
    public:
    Vehicle.VehicleType^ GetVehicleType( 
       String^ vehicleTypeName
    ) 

    Parameters

    vehicleTypeName
    The name of the VehicleType.

    Return Value

    A comprehensive VehicleType object.
    Exceptions
    ExceptionDescription
    Represents an error due to a lack of permissions.
    Remarks
    Requires ViewVehicles permission.
    Requirements

    Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11, Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019, Windows Server 2022

    See Also