DbConnection.OnStateChange Method (StateChangeEventArgs)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Raises the StateChange event.

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

protected virtual void OnStateChange(
	StateChangeEventArgs stateChange
)

Parameters

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
Show: