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

Raises the StateChangeEventArgs event.

[Visual Basic]
Overridable Protected Sub OnStateChange( _
   ByVal scevent As StateChangeEventArgs _
)
[C#]
protected virtual void OnStateChange(
   StateChangeEventArgs scevent
);
[C++]
protected: virtual void OnStateChange(
   StateChangeEventArgs* scevent
);
[JScript]
protected function OnStateChange(
   scevent : StateChangeEventArgs
);

Parameters

scevent
A StateChangeEventArgs that contains the event data.

Remarks

Raising an event invokes the event-handling method through the delegate. For an overview, see TBD.

Notes to Inheritors: When overriding OnStateChange in a derived class, be sure to call the base class's OnStateChange method.

Example

The following example uses this method within a derived class.

See Also

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