OLEDBConnection.IsConnected Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.