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.AddOnStateChange

Use to add a connection state change event handler.

[Visual Basic]
Overridable Public Sub AddOnStateChange( _
   ByVal handler As StateChangeEventHandler _
)
[C#]
public virtual void AddOnStateChange(
   StateChangeEventHandler handler
);
[C++]
public: virtual void AddOnStateChange(
   StateChangeEventHandler* handler
);
[JScript]
public function AddOnStateChange(
   handler : StateChangeEventHandler
);

Parameters

handler
A StateChangeEventHandler delegate that represents the method that will handle the StateChangeEventArgs event.

Remarks

Adds an event handler for the StateChangeEventArgs event.

See Also

DBConnection Class | DBConnection Members | System.Data.Internal Namespace | RemoveOnStateChange