Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft