Compartilhar via


SqlClientFactory.CreateConnectionStringBuilder Método

Definição

Retorna uma instância DbConnectionStringBuilder fortemente tipada.

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

Retornos

Uma nova instância fortemente tipada de DbConnectionStringBuilder.

Exemplos

O fragmento de código a seguir retorna uma instância fortemente tipada DbConnectionStringBuilder :

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

Aplica-se a

Confira também