GetLastEntLogOnTime(Nullable<Int32>,String,String,DBString,DateTime) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The GetLastEntLogOnTime() method is called when a user logs into 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 name and site name.
'Declaration
Public Overloads Shared Sub GetLastEntLogOnTime( _
ByVal sessionId As Nullable(Of Integer), _
ByVal entName As String, _
ByVal siteName As String, _
ByVal userId As DBString, _
ByRef lastEntLogOnTime As Date _
)
public static void GetLastEntLogOnTime(
Nullable<int> sessionId,
string entName,
string siteName,
DBString userId,
out DateTime lastEntLogOnTime
)
Parameters
- sessionId
- Optional filter parameter. Holds the session ID and thus the user who is making this method call.
- entName
- Optional filter parameter. Holds the name of the entity that the user is logged on to.
- siteName
- Optional filter parameter. Holds the site name 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 specified user(s) and/or entity(s).