Condividi tramite


SqlClientFactory.CreateCommandBuilder Metodo

Definizione

Restituisce un'istanza di DbCommandBuilder fortemente tipizzata.

public:
 override System::Data::Common::DbCommandBuilder ^ CreateCommandBuilder();
public override System.Data.Common.DbCommandBuilder CreateCommandBuilder ();
override this.CreateCommandBuilder : unit -> System.Data.Common.DbCommandBuilder
Public Overrides Function CreateCommandBuilder () As DbCommandBuilder

Restituisce

Nuova istanza fortemente tipizzata dell'oggetto DbCommandBuilder.

Esempio

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

Dim newFactory As SqlClientFactory = SqlClientFactory.Instance
Dim cmd As DbCommandBuilder = newFactory.CreateCommandBuilder()
SqlClientFactory newFactory = SqlClientFactory.Instance;
DbCommandBuilder cmd = newFactory.CreateCommandBuilder();

Si applica a

Vedi anche