Gets a value indicating whether the user is currently logged in.
Namespace: ININ.IceLib.PeopleAssembly: ININ.IceLib.People (in ININ.IceLib.People.dll) Version: 0.0.0.0 (22.3.0.218)
Syntax
C# |
---|
public bool LoggedIn { get; } |
Visual Basic |
---|
Public ReadOnly Property LoggedIn As Boolean Get |
Field Value
trueTruetruetrue (True in Visual Basic) if this user is logged in; otherwise, falseFalsefalsefalse (False in Visual Basic).Remarks
This requires the view access right for Logged In in Interaction Administrator.
Starting in 2018 R5 trueTruetruetrue (True in Visual Basic) will be returned for stationless sessions.
To get the old 2018 R4 behavior you can check if the status has any stations or ICServers.
CopyC#
bool loggedIn = (userStatus.Stations != null && userStatus.Stations.Length > 0) || (userStatus.ICServers != null && userStatus.ICServers.Length > 0);
Version Information
Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.
For 3.0, supported for IC Server version 3.0 GA and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.
For 3.0, supported for IC Server version 3.0 GA and beyond.