Bagikan melalui


OleDbFactory.CreateConnectionStringBuilder Metode

Definisi

Mengembalikan instans yang ditik DbConnectionStringBuilder dengan kuat.

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

Mengembalikan

Instans baru yang dititik kuat dari DbConnectionStringBuilder.

Contoh

Fragmen kode berikut mengembalikan instans yang sangat ditik DbConnectionStringBuilder :

Dim newFactory As OleDbFactory = OleDbFactory.Instance
Dim cmd As DbConnectionStringBuilder = newFactory.CreateConnectionStringBuilder()
OleDbFactory newFactory = OleDbFactory.Instance;
DbConnectionStringBuilder cmd = newFactory.CreateConnectionStringBuilder();

Berlaku untuk