共用方式為


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

適用於

另請參閱