Edit

Share via


OLEDBConnection.IsConnected Property

Definition

Returns True if the MaintainConnection property isTrue. Returns False if it is not currently connected to its source. Read-only Boolean.

public:
 property bool IsConnected { bool get(); };
public bool IsConnected { get; }
Public ReadOnly Property IsConnected As Boolean

Property Value

Boolean

Remarks

The IsConnected property does not check to see if the connection is connected. Even if this property returnsTrue, sending commands to the provider could result in an error if the connection is no longer valid.

Applies to