ODBCConnection.AlwaysUseConnectionFile Property
True if the connection file is always used to establish connection to the data source. Read/write Boolean.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Property AlwaysUseConnectionFile As Boolean
Get
Set
'Usage
Dim instance As ODBCConnection
Dim value As Boolean
value = instance.AlwaysUseConnectionFile
instance.AlwaysUseConnectionFile = value
bool AlwaysUseConnectionFile { get; set; }
Property Value
Type: System.Boolean
Boolean
Remarks
When this property is True, the connection file will be used to establish the connection to the data source. If the connection embedded within the workbook is different from the external connection file, the embedded connection will be ignored and the external connection file will be the only version considered.