共用方式為


OdbcFactory.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 OdbcFactory = OdbcFactory.Instance
Dim cmd As DbDataAdapter = newFactory.CreateDataAdapter()
OdbcFactory newFactory = OdbcFactory.Instance;
DbDataAdapter cmd = newFactory.CreateDataAdapter();

適用於