OnStateChange Method

DbConnection.OnStateChange Method (StateChangeEventArgs)


Raises the StateChange event.

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

protected virtual void OnStateChange(
	StateChangeEventArgs stateChange


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
© 2015 Microsoft