Bagikan melalui


OdbcFactory.CreateCommandBuilder Metode

Definisi

Mengembalikan instans yang ditik DbCommandBuilder dengan kuat.

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

Mengembalikan

Instans baru yang dititik kuat dari DbCommandBuilder.

Contoh

Fragmen kode berikut mengembalikan instans yang ditik DbCommandBuilder dengan kuat:

Dim newFactory As OdbcFactory = OdbcFactory.Instance
Dim cmd As DbCommandBuilder = newFactory.CreateCommandBuilder()
OdbcFactory newFactory = OdbcFactory.Instance;
DbCommandBuilder cmd = newFactory.CreateCommandBuilder();

Berlaku untuk