Click or drag to resize
MultiDocumentQueryBaseTQuery, TInnerQuery, TObjectGetEnumerableResult Method
Gets an enumeration of data records representing the result of this query. If Properties has CheckPermissions set to true, the resulting data records are filtered based on permissions.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public override IEnumerable<IDataRecord> GetEnumerableResult(
	CommandBehavior commandBehavior = CommandBehavior.Default,
	bool newConnection = false
)

Parameters

commandBehavior (Optional)
Type: System.DataCommandBehavior
Command behavior for the underlying reader.
newConnection (Optional)
Type: SystemBoolean
If true, the underlying reader will be executed using its own dedicated connection.

Return Value

Type: IEnumerableIDataRecord
Returns the enumeration resulting from query execution.

Implements

IDataQueryGetEnumerableResult(CommandBehavior, Boolean)
IDataQueryGetEnumerableResult(CommandBehavior, Boolean)
Exceptions
ExceptionCondition
NotSupportedExceptionThrown when the query does not support reader.
Remarks

The returned data records can contain additional system columns (ROW_NUMBER and TOTAL_RECORDS) when a paged query is being executed. The columns support the framework infrastructure and should not be relied on in custom code.

The data records do not reflect version data. To apply version data to the resulting enumeration, the GetEnumerableTypedResult(CommandBehavior, Boolean) method must be used.

See Also