OleDbFactory.CreateCommandBuilder 方法

定义

返回强类型 DbCommandBuilder 实例。

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

返回

新的强类型 DbCommandBuilder 实例。

示例

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

Dim newFactory As OleDbFactory = OleDbFactory.Instance
Dim cmd As DbCommandBuilder = newFactory.CreateCommandBuilder()
OleDbFactory newFactory = OleDbFactory.Instance;
DbCommandBuilder cmd = newFactory.CreateCommandBuilder();

适用于