DbCommand.ExecuteDbDataReader Method (CommandBehavior)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Executes the command text against the connection.

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

protected abstract DbDataReader ExecuteDbDataReader(
	CommandBehavior behavior
)

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: