OdbcConnection.Driver 属性
定义
获取为当前连接指定的 ODBC 驱动程序名称。Gets the name of the ODBC driver specified for the current connection.
public:
property System::String ^ Driver { System::String ^ get(); };
[System.ComponentModel.Browsable(false)]
public string Driver { get; }
public string Driver { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Driver : string
member this.Driver : string
Public ReadOnly Property Driver As String
属性值
ODBC 驱动程序的名称。The name of the ODBC driver. 它通常是 DLL 名称(例如 Sqlsrv32.dll)。This typically is the DLL name (for example, Sqlsrv32.dll). 在打开连接前,默认值一直为空字符串 ("")。The default value is an empty string ("") until the connection is opened.
- 属性
注解
检索 Driver 属性等效于调用 ODBC 函数 SQLGetInfo , InfoType 参数设置为 SQL_DRIVER_NAME。Retrieving the Driver property is equivalent to calling the ODBC function SQLGetInfo with the InfoType parameter set to SQL_DRIVER_NAME.