DataQueryBaseTQueryExecuteReader Method |
Executes the current query and returns it's results as an
IDataReader. The
SupportsReader flag indicates whether this operation
is supported.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntaxpublic virtual IDataReader ExecuteReader(
CommandBehavior commandBehavior = CommandBehavior.Default,
bool newConnection = false
)
Parameters
- commandBehavior (Optional)
- Type: System.DataCommandBehavior
Command behavior for the reader. - newConnection (Optional)
- Type: SystemBoolean
If true, the reader will be executed using its own dedicated connection.
Return Value
Type:
IDataReaderReturns the data reader resulting from query execution, or null.
Implements
IDataQueryExecuteReader(CommandBehavior, Boolean)
ExceptionsException | Condition |
---|
NotSupportedException | Thrown when the query does not support reader. |
Remarks
The method returns null if
ReturnsNoResults indicates the query won't result in any results.
See Also