OdbcDsnInfo MembersCleanCode C# Libraries v1.2.03 API

The OdbcDsnInfo type exposes the following members.
Methods

  NameDescription
Public methodStatic memberGetDriver
Gets the driver name associated with the specified Data Source Name. Looks for it first within the current user registry settings; if not found, then looks within the current machine registry settings.
Public methodStatic memberIsMySql
Determines whether the specified DSN driver is MySql.
Public methodStatic memberIsOracle
Determines whether the specified DSN driver is Oracle.
Public methodStatic memberIsSqlServer
Determines whether the specified DSN driver is SQL Server.
Public methodStatic memberIsWindowsAuthentication
Determines whether the specified DSN name uses Windows authentication or not.
Public methodStatic memberOdbcTarget
Gets the ODBC target for the specified DSN name.
Back to Top
Properties

  NameDescription
Public propertyStatic memberAllDsnElements
Reads the local user/system DSN registry entries and returns a Dictionary with keys of Data Source Names and values being the driver type.
Public propertyStatic memberAllDsnNames
Reads the local user/system DSN registry entries and returns a sorted list of Data Source Names.
Back to Top
See Also