Bagikan melalui


OleDbFactory.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 sangat ditik DbCommandBuilder :

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

Berlaku untuk