NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DBConnection StateChange Event

Occurs whenever the state of the connection changes.

The following declaration shows the syntax for a method that handles the StateChange event.

[Visual Basic]
Private Sub DBConnectionName_StateChange( _
   ByVal sender As Object, _
   ByVal e As StateChangeEventArgs _
)
[C#]
private void DBConnectionName_StateChange(
   object sender,
   StateChangeEventArgs e
);
[C++]
private: void DBConnectionName_StateChange(
   Object* sender,
   StateChangeEventArgs* e
);
[JScript]
private DBConnectionName_StateChange(
   sender : Object,
   e : StateChangeEventArgs
);

Parameters

sender
The source of the event.
e
A StateChangeEventArgs that contains the event data. The following StateChangeEventArgs properties provide information specific to this event.
Property Description
CurrentState
[To be supplied.]
OriginalState
[To be supplied.]

See Also

DBConnection Class | DBConnection MembersTopic | System.Data.Internal Namespace