Specifies constants indicating the reason for the state of a Session's connection.
Namespace: ININ.IceLib.ConnectionAssembly: ININ.IceLib (in ININ.IceLib.dll) Version: 0.0.0.0 (22.3.0.218)
Syntax
C# |
---|
public enum ConnectionStateReason |
Visual Basic |
---|
Public Enumeration ConnectionStateReason |
Members
Member name | Value | Description | |
---|---|---|---|
None | 0 | There is no reason for the current connection state. | |
ServerNotResponding | 1 | The connection state is not up because the server is not responding. | |
LogOn | 2 | The connection state is attempting or up because a logon has been initiated. | |
LogOnFailed | 3 | The connection state is down because the logon attempt failed. | |
AdminLogOff | 4 | The connection state is down due to administrative action. | |
UserDeleted | 5 | The connection state is down due to administrative action. | |
StationDeleted | 6 | The connection state is down due to administrative action. | |
StationDeactivated | 7 | The connection state is down due to administrative action. | |
AnotherLogOn | 8 | The connection state is down due to a subsequent logon. | |
UserLogOff | 9 | The connection state is down because the user has logged off. | |
SessionTimeout | 10 | The connection state is down because the session has timed out. | |
Switchover | 11 | The connection state is down because a switchover has been initiated. |
Remarks
This enumeration is used to indicate the reason for the Session's ConnectionState.
Examples
The following example demonstrates usage of a Session object.
CopyC#
using ININ.IceLib.Connection; Session session = new Session(); ... // Further processing if ((session.ConnectionState == ConnectionState.Down) && (session.ConnectionStateReason == ConnectionStateReason.LogOnFailed)) { // The login attempt failed. }
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.