Compartilhar via


OLEDBConnection.IsConnected Property

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

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property IsConnected As Boolean
    Get
'Usage
Dim instance As OLEDBConnection
Dim value As Boolean

value = instance.IsConnected
bool IsConnected { get; }

Property Value

Type: System.Boolean
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.

See Also

Reference

OLEDBConnection Interface

OLEDBConnection Members

Microsoft.Office.Interop.Excel Namespace