Bagikan melalui


OdbcFactory.CreateDataAdapter Metode

Definisi

Mengembalikan instans yang ditik DbDataAdapter dengan kuat.

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

Mengembalikan

Instans baru yang dititik kuat dari DbDataAdapter.

Contoh

Fragmen kode berikut mengembalikan instans yang sangat ditik DbDataAdapter :

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

Berlaku untuk