StateChange event

Description

Occurs when the state of the connection changes.

Syntax

event StateChangeEventHandler StateChange

Usage

The event handler receives an argument of StateChangeEventArgs with data related to this event. Two StateChangeEventArgs properties provide information specific to this event: CurrentState and OriginalState.