Gets the current state of the connection.
[Visual Basic] Overridable Public ReadOnly Property State As DBObjectState [C#] public DBObjectState State {override get;} [C++] public: __property virtual DBObjectState get_State(); [JScript] public function get State() : DBObjectState;
One of the DBObjectState values.
DBObjectState values may be OR'ed together.
The following example shows how to create a connection and displays some of its read-only properties.
SQLConnection Class | SQLConnection Members | System.Data.SQL Namespace