OnTime Extension SDK Documentation
OnTime.Extensions.SDK Namespace / DataAccess Class / GetVehicle Method
The unique identifier of the Vehicle as a Guid.
Determines if deleted records are allowed to be returned in the result.



In This Topic
    GetVehicle Method
    In This Topic
    Retrieves a single Vehicle object assigned to a given identifier.
    Syntax
    'Declaration
     
    
    Public Function GetVehicle( _
       ByVal vehicleID As Guid, _
       Optional ByVal loadArchived As Boolean _
    ) As Vehicle
    'Usage
     
    
    Dim instance As DataAccess
    Dim vehicleID As Guid
    Dim loadArchived As Boolean
    Dim value As Vehicle
     
    value = instance.GetVehicle(vehicleID, loadArchived)
    public Vehicle GetVehicle( 
       Guid vehicleID,
       bool loadArchived
    )
    public:
    Vehicle^ GetVehicle( 
       Guid vehicleID,
       bool loadArchived
    ) 

    Parameters

    vehicleID
    The unique identifier of the Vehicle as a Guid.
    loadArchived
    Determines if deleted records are allowed to be returned in the result.

    Return Value

    A comprehensive Vehicle object.
    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