Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
StateChangeEventArgs Constructor
Collapse the table of content
Expand the table of content

StateChangeEventArgs Constructor

Initializes a new instance of the StateChangeEventArgs class, when given the original state and the current state of the object.

[Visual Basic]
Public Sub New( _
   ByVal originalState As ConnectionState, _
   ByVal currentState As ConnectionState _
)
[C#]
public StateChangeEventArgs(
   ConnectionState originalState,
 ConnectionState currentState
);
[C++]
public: StateChangeEventArgs(
   ConnectionState originalState,
 ConnectionState currentState
);
[JScript]
public function StateChangeEventArgs(
   originalState : ConnectionState,
 currentState : ConnectionState
);

Parameters

originalState
One of the ConnectionState values.
currentState
One of the ConnectionState values.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

StateChangeEventArgs Class | StateChangeEventArgs Members | System.Data Namespace

Show:
© 2015 Microsoft