Skip to content

Class DeviceStateChangeEventArgs ​

Namespace: Belay.Core
Assembly: Belay.Core.dll

Represents a change in device connection state.

csharp
public class DeviceStateChangeEventArgs : EventArgs

Inheritance ​

object ← EventArgs ← DeviceStateChangeEventArgs

Inherited Members ​

EventArgs.Empty, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors ​

DeviceStateChangeEventArgs(DeviceConnectionState, DeviceConnectionState, string?, Exception?)

Initializes a new instance of the class.

Properties ​

Exception

Gets the exception that caused the state change, if applicable.

NewState

Gets the new connection state after the change.

OldState

Gets the previous connection state before the change.

Reason

Gets the reason for the state change, if available.

Timestamp

Gets the timestamp when the state change occurred.

Released under the Apache License 2.0.