共用方式為


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

適用於