Partager via


SqlClientFactory.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 SqlClientFactory = SqlClientFactory.Instance
Dim cmd As DbConnectionStringBuilder = _
    newFactory.CreateConnectionStringBuilder()
SqlClientFactory newFactory = SqlClientFactory.Instance;
DbConnectionStringBuilder cmd =
    newFactory.CreateConnectionStringBuilder();

S’applique à

Voir aussi