.NET Framework 3.0
NOTE: This event is now obsolete.Occurs when the state of the connection changes. Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)
[ObsoleteAttribute("This property is obsolete and will be removed in a future version.")] public override event StateChangeEventHandler StateChange
/** @event */ public void add_StateChange (StateChangeEventHandler value) /** @event */ public void remove_StateChange (StateChangeEventHandler value)
In JScript, you can handle the events defined by a class, but you cannot define your own.
The StateChange event is not raised unless you explicitly call Close or Dispose.