Bagikan melalui


OdbcFactory.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 ditik DbConnectionStringBuilder dengan kuat:

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

Berlaku untuk