共用方式為


OleDbFactory.CreateDataAdapter 方法

定義

傳回強型別 DbDataAdapter 執行個體。

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

傳回

DbDataAdapter 的新強型別執行個體。

範例

下列代碼段會傳回強型別 DbDataAdapter 實例:

Dim newFactory As OleDbFactory = OleDbFactory.Instance
Dim cmd As DbDataAdapter = newFactory.CreateDataAdapter()
OleDbFactory newFactory = OleDbFactory.Instance;
DbDataAdapter cmd = newFactory.CreateDataAdapter();

適用於