SqlCeConnection::State Property
Visual Studio 2010
Gets the current state of the connection.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
public: virtual property ConnectionState State { ConnectionState get () override; }
Property Value
Type: System.Data::ConnectionStateA bitwise combination of the ConnectionState values. The default is Closed.
Implements
IDbConnection::StateThe allowed state changes are:
From Closed to Open, by using the Open method of the connection object.
From Open to Closed, by using either the Close method or the Dispose method of the connection object.
Note |
|---|
Calling the State property increases application overhead because each call results in a call to the OLE DB DBPROP_CONNECTIONSTATUS property for an open connection. |
Show:
Note