<PackageReference Include="System.Data.Common" Version="4.0.1-beta-23409" />

StateChangeEventArgs

public sealed class StateChangeEventArgs : EventArgs
Provides data for the state change event of a .NET Framework data provider.
public ConnectionState CurrentState { get; }

Gets the new state of the connection. The connection object will be in the new state already when the event is fired.

Gets the original state of the connection.

public StateChangeEventArgs(ConnectionState originalState, ConnectionState currentState)

Initializes a new instance of the StateChangeEventArgs class, when given the original state and the current state of the object.