OLEDBConnection.LocaleID Property
Gets or sets the locale identifier for the specified connection.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Property LocaleID As Integer
Get
Set
'Usage
Dim instance As OLEDBConnection
Dim value As Integer
value = instance.LocaleID
instance.LocaleID = value
int LocaleID { get; set; }
Property Value
Type: System.Int32
The locale identifier for the specified connection.
Remarks
Read/write.
Before you set the LocaleID property to a new locale, you must set the RetrieveInOfficeUILang property of the OLEDBConnection object to false. For information about valid Locale ID (LCID) values, search the MSDN website for "Locale IDs Assigned by Microsoft".