DbConnection.OnStateChange Method (StateChangeEventArgs)


Raises the StateChange event.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

abstract OnStateChange : 
        stateChange:StateChangeEventArgs -> unit
override OnStateChange : 
        stateChange:StateChangeEventArgs -> unit


Type: System.Data.StateChangeEventArgs

A StateChangeEventArgs that contains the event data.

Raising an event invokes the event handler through a delegate. For an overview, see NIB: Raising an Event.

Notes to Inheritors:

When overriding OnStateChange in a derived class, be sure to call the base class's OnStateChange method.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top