OnTime Extension SDK Documentation
OnTime.Extensions.SDK Namespace / DataAccess Class / GetUserPositions Method
The unique identifier of a User as a Guid.
The inclusive lower-bound of the date range.
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.
The inclusive upper-bound of the date range.
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
    GetUserPositions Method (DataAccess)
    In This Topic
    Retrieves the UserPosition history for a given User within the specified date range.
    Syntax
    'Declaration
     
    
    Public Function GetUserPositions( _
       ByVal userID As Guid, _
       ByVal startDate As Date, _
       ByVal endDate As Date _
    ) As List(Of User.UserPosition)
    'Usage
     
    
    Dim instance As DataAccess
    Dim userID As Guid
    Dim startDate As Date
    Dim endDate As Date
    Dim value As List(Of User.UserPosition)
     
    value = instance.GetUserPositions(userID, startDate, endDate)

    Parameters

    userID
    The unique identifier of a User as a Guid.
    startDate
    The inclusive lower-bound of the date range.
    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.
    endDate
    The inclusive upper-bound of the date range.
    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

    An array of comprehensive UserPosition objects.
    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