CreateDataAdapter Method

OleDbFactory.CreateDataAdapter Method ()


Returns a strongly-typed DbDataAdapter instance.

Namespace:   System.Data.OleDb
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:

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

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