OleDbDataAdapter Constructor (OleDbCommand^)

 

Initializes a new instance of the OleDbDataAdapter class with the specified OleDbCommand as the SelectCommand property.

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

public:
OleDbDataAdapter(
	OleDbCommand^ selectCommand
)

Parameters

selectCommand
Type: System.Data.OleDb::OleDbCommand^

An OleDbCommand that is a SELECT statement or stored procedure, and is set as the SelectCommand property of the OleDbDataAdapter.

This implementation of the OleDbDataAdapter constructor sets the SelectCommand property to the value specified in the selectCommand parameter.

When you create an instance of OleDbDataAdapter, the following read/write properties are set to the following initial values.

Properties

Initial value

MissingMappingAction

MissingMappingAction.Passthrough

MissingSchemaAction

MissingSchemaAction.Add

You can change the value of any of these properties through a separate call to the property.

The following example creates an OleDbDataAdapter and sets some of its properties.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: