Partager via


OdbcFactory.CreateConnectionStringBuilder Méthode

Définition

Retourne une instance de DbConnectionStringBuilder fortement typée.

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

Retours

Nouvelle instance fortement typée de DbConnectionStringBuilder.

Exemples

Le fragment de code suivant retourne une instance fortement typée DbConnectionStringBuilder :

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

S’applique à