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

Gets the current state of the connection.

[Visual Basic]
Overridable Public ReadOnly Property State As DBObjectState
[C#]
public DBObjectState State {virtual get;}
[C++]
public: __property virtual DBObjectState get_State();
[JScript]
public function get State() : DBObjectState;

Property Value

One of the DBObjectState values.

Remarks

DBObjectState values may be OR'ed together.

Example

The following example shows how to create a connection and displays some of its read-only properties.

See Also

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