DbCommand::ExecuteDbDataReader Method (CommandBehavior)

 

Executes the command text against the connection.

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

protected:
virtual DbDataReader^ ExecuteDbDataReader(
	CommandBehavior behavior
) abstract

Parameters

behavior
Type: System.Data::CommandBehavior

An instance of CommandBehavior.

Return Value

Type: System.Data.Common::DbDataReader^

A task representing the operation.

Exception Condition
DbException

An error occurred while executing the command text.

ArgumentException

An invalid CommandBehavior value.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show: