'Declaration
Public Event StateChange As StateChangeEventHandler
public event StateChangeEventHandler StateChange
public event StateChange: StateChangeEventHandler;
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event StateChangeEventHandler* StateChange
Event Data
The event handler receives an argument of type StateChangeEventArgs containing data related to this event. The following StateChangeEventArgs properties provide information specific to this event.
Property | Description |
---|---|
CurrentState | Gets the new state of the connection. The connection object will be in the new state already when the event is fired. |
OriginalState | Gets the original state of the connection. |
Requirements
.NET Framework
Version 2.0 or later
See Also