This documentation is archived and is not being maintained.

StateChangeEventArgs.CurrentState Property

Gets the new state of the connection. The connection object will be in the new state already when the event is fired.

[Visual Basic]
Public ReadOnly Property CurrentState As ConnectionState
[C#]
public ConnectionState CurrentState {get;}
[C++]
public: __property ConnectionState get_CurrentState();
[JScript]
public function get CurrentState() : ConnectionState;

Property Value

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: