Condividi tramite


SqlClientFactory.CreateConnectionStringBuilder Metodo

Definizione

Restituisce un'istanza di DbConnectionStringBuilder fortemente tipizzata.

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

Restituisce

Nuova istanza fortemente tipizzata di DbConnectionStringBuilder .

Esempio

Il frammento di codice seguente restituisce un'istanza fortemente tipizzata DbConnectionStringBuilder :

SqlClientFactory newFactory = SqlClientFactory.Instance;
DbConnectionStringBuilder cmd =
newFactory.CreateConnectionStringBuilder();

Si applica a