Name

StateChangeEventArgs

Synopsis

This class provides data for the method that handles the StateChanged event of a provider-specific Connection object. It indicates the state of the Connection before (CurrentState ) and after (OriginalState) the state change.

public sealed class StateChangeEventArgs : EventArgs {

// Public Constructors

   public StateChangeEventArgs(ConnectionState originalState,  ConnectionState currentState);

// Public Instance Properties

   public ConnectionState CurrentState{get; } 

   public ConnectionState OriginalState{get; } 

}

Hierarchy

System.Object System.EventArgs StateChangeEventArgs

Passed To

StateChangeEventHandler.{BeginInvoke( ), Invoke( )}

Get ADO.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.