OnTime Extension SDK Documentation
OnTime.Extensions.SDK Namespace / DataAccess Class / UpdateUserPosition Method
The unique identifier of the User as a Guid.
The current latitude coordinate of the User as a Decimal. Value must be between -90 and 90.
The current longitude coordinate of the User as a Decimal. Value must be between -180 and 180.
The exact date and time the given coordinates were recorded as a Date.
Dates should be specified as Local or UTC by use of the System.DateTime.Kind property. Dates with the System.DateTime.Kind property not set (Unspecified) will be interpreted as UTC.



In This Topic
    UpdateUserPosition Method (DataAccess)
    In This Topic
    Updates the position of a User relative to a given date and time.
    Syntax
    'Declaration
     
    
    Public Function UpdateUserPosition( _
       ByVal userID As Guid, _
       ByVal latitude As Decimal, _
       ByVal longitude As Decimal, _
       ByVal timestamp As Date _
    ) As Boolean
    'Usage
     
    
    Dim instance As DataAccess
    Dim userID As Guid
    Dim latitude As Decimal
    Dim longitude As Decimal
    Dim timestamp As Date
    Dim value As Boolean
     
    value = instance.UpdateUserPosition(userID, latitude, longitude, timestamp)
    public bool UpdateUserPosition( 
       Guid userID,
       decimal latitude,
       decimal longitude,
       DateTime timestamp
    )
    public:
    bool UpdateUserPosition( 
       Guid userID,
       decimal latitude,
       decimal longitude,
       DateTime timestamp
    ) 

    Parameters

    userID
    The unique identifier of the User as a Guid.
    latitude
    The current latitude coordinate of the User as a Decimal. Value must be between -90 and 90.
    longitude
    The current longitude coordinate of the User as a Decimal. Value must be between -180 and 180.
    timestamp
    The exact date and time the given coordinates were recorded as a Date.
    Dates should be specified as Local or UTC by use of the System.DateTime.Kind property. Dates with the System.DateTime.Kind property not set (Unspecified) will be interpreted as UTC.

    Return Value

    Returns true if the User's position was successfully updated. Otherwise, returns false.
    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