DbCommand::ExecuteDbDataReader Method (CommandBehavior)
.NET Framework (current version)
Executes the command text against the connection.
Assembly: System.Data (in System.Data.dll)
Parameters
- behavior
-
Type:
System.Data::CommandBehavior
An instance of CommandBehavior.
| 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
Available since 10
.NET Framework
Available since 2.0
Show: