''StateChangeEventArgs'' '''

StateChangeEventArgs

System.Data (system.data.dll) sealed class

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 figs/U2192.gif System.EventArgs figs/U2192.gif StateChangeEventArgs

Passed To

StateChangeEventHandler.{BeginInvoke( ) , Invoke( )}



    Part I: ADO.NET Tutorial
    Part II: ADO.NET Core Classes
    Part III: API Quick Reference
    Chapter 34. The System.Data Namespace