GetLastEntLogOnTime(Nullable<Int32>,Nullable<Int32>,DBString,DateTime) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The GetLastEntLogOnTime() method is called when a user logs on to multiple entities. The method retrieves the last logon time from the Ent_Logon table. The last logon time can be filtered by a user and/or an entity.
If optionally filtering the results by a specific entity, the overload of this method specifies the entity by its ID.
'Declaration
Public Overloads Shared Sub GetLastEntLogOnTime( _
ByVal sessionId As Nullable(Of Integer), _
ByVal entId As Nullable(Of Integer), _
ByVal userId As DBString, _
ByRef lastEntLogOnTime As Date _
)
'Usage
Dim sessionId As Nullable(Of Integer)
Dim entId As Nullable(Of Integer)
Dim userId As DBString
Dim lastEntLogOnTime As Date
Session.GetLastEntLogOnTime(sessionId, entId, userId, lastEntLogOnTime)
public static void GetLastEntLogOnTime(
Nullable<int> sessionId,
Nullable<int> entId,
DBString userId,
out DateTime lastEntLogOnTime
)
Parameters
- sessionId
- Optional filter parameter. Holds the session ID and thus the user who is making this method call.
- entId
- Optional filter parameter. Holds the ID of the entity that the user is logged on to.
- userId
- Optional filter parameter. Holds the ID of the user whose last logon time is being retrieved.
- lastEntLogOnTime
- Output. Holds the date/time that identifies the last logon time (MAX(start_time)) for the user(s) and/or entity(s).