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 dell'oggetto DbConnectionStringBuilder.

Esempio

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

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

Si applica a

Vedi anche