OdbcFactory.CreateConnectionStringBuilder 方法

定义

返回强类型 DbConnectionStringBuilder 实例。

public:
 override System::Data::Common::DbConnectionStringBuilder ^ CreateConnectionStringBuilder();
public override System.Data.Common.DbConnectionStringBuilder CreateConnectionStringBuilder ();
override this.CreateConnectionStringBuilder : unit -> System.Data.Common.DbConnectionStringBuilder
Public Overrides Function CreateConnectionStringBuilder () As DbConnectionStringBuilder

返回

新的强类型 DbConnectionStringBuilder 实例。

示例

以下代码片段返回强类型 DbConnectionStringBuilder 实例:

Dim newFactory As OdbcFactory = OdbcFactory.Instance
Dim cmd As DbConnectionStringBuilder = newFactory.CreateConnectionStringBuilder()
OdbcFactory newFactory = OdbcFactory.Instance;
DbConnectionStringBuilder cmd = newFactory.CreateConnectionStringBuilder();

适用于