OLEDBConnection.UseLocalConnection Property
True if the LocalConnection property is used to specify the string that enables Microsoft Excel to connect to a data source. False if the connection string specified by the Connection property is used. Read/write Boolean.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Property UseLocalConnection As Boolean
Get
Set
'Usage
Dim instance As OLEDBConnection
Dim value As Boolean
value = instance.UseLocalConnection
instance.UseLocalConnection = value
bool UseLocalConnection { get; set; }
Property Value
Type: System.Boolean
Boolean
Remarks
This example sets the connection string of the first PivotTable cache to reference an offline cube file.