Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft