Table of Contents

Class OdbcDriver

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a open database connectivity (ODBC) driver installed on a machine.

public class OdbcDriver : GlobalSerializableClassicBase, IComparable<OdbcDriver>
Inheritance
OdbcDriver
Implements

Constructors

OdbcDriver()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.OdbcDriver class.

public OdbcDriver()

Properties

CollectionIndex

Gets the index used by the data comparer in the format "Driver Name [Platform]" when the driver is 32-bit.

[Browsable(false)]
public string CollectionIndex { get; }

Property Value

string

DriverFile

Gets or sets the absolute path to the driver file - for example "C:\WINNT\System32\SQLSRV32.dll". This is not available for all ODBC Drivers.

public string DriverFile { get; set; }

Property Value

string

DriverFileVersion

Gets or sets the version number of this ODBC driver file. This is obtained by querying the version number of the .dll file where available.

public string DriverFileVersion { get; set; }

Property Value

string

DriverFilename

Gets or sets the filename of the driver - for example "SQLSRV32.dll".

public string DriverFilename { get; }

Property Value

string

DriverName

Gets or sets the display name of the driver - for example "SQL Server".

public string DriverName { get; set; }

Property Value

string

DriverOdbcVersion

Gets or sets the version number of the ODBC Driver - for example "3.50".

public string DriverOdbcVersion { get; set; }

Property Value

string

FileExtensions

Gets or sets the file extensions that this ODBC Driver is configured to use - for example ".xls,.xlsx, *.xlsb". This setting only applies to file based DSN connections.

public string FileExtensions { get; set; }

Property Value

string

FileLocated

Gets or sets whether the specified driver file was located on the system.

public BooleanOption FileLocated { get; set; }

Property Value

BooleanOption

Platform

Gets or sets the architecture platform for which the ODBC driver is designed - for example "x86" or "x64".

public OdbcDriverPlatform Platform { get; set; }

Property Value

OdbcDriverPlatform

Methods

CompareTo(OdbcDriver)

Compares two ODBC drivers to allow sorting alphabetically by driver display name.

public int CompareTo(OdbcDriver other)

Parameters

other OdbcDriver

The ODBC driver to compare to.

Returns

int

ToString()

Returns the display name of the driver - for example "SQL Server".

public override string ToString()

Returns

string

The display name of the driver.