DbCommand.ExecuteDbDataReader Method (CommandBehavior)
.NET Framework (current version)
![]() |
---|
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.
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: