SqlClientFactory.CreateConnectionStringBuilder Metoda

Definice

Vrátí instanci silného DbConnectionStringBuilder typu.

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

Návraty

Nová instance silného DbConnectionStringBuildertypu .

Příklady

Následující fragment kódu vrátí instanci silného typu DbConnectionStringBuilder :

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

Platí pro

Viz také