CreateDataAdapter Method

SqlClientFactory.CreateDataAdapter Method ()


Returns a strongly typed DbDataAdapter instance.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

public override DbDataAdapter CreateDataAdapter()

Return Value

Type: System.Data.Common.DbDataAdapter

A new strongly typed instance of DbDataAdapter.

The following code fragment returns a strongly typed DbDataAdapter instance:

SqlClientFactory newFactory = SqlClientFactory.Instance;
DbDataAdapter cmd = newFactory.CreateDataAdapter();

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft