Click or drag to resize
DocumentQueryBaseTQuery, TObjectGetEnumerableTypedResultAsync Method
Asynchronously gets enumerable collection of TObject representing the result of this query. Version data are applied to the resulting objects.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public override Task<IEnumerable<TObject>> GetEnumerableTypedResultAsync(
	CommandBehavior commandBehavior = CommandBehavior.Default,
	bool newConnection = false,
	Nullable<CancellationToken> cancellationToken = null
)

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.
cancellationToken (Optional)
Type: SystemNullableCancellationToken
The cancellation instruction.

Return Value

Type: TaskIEnumerableTObject
Returns a task returning the enumeration resulting from query execution.

Implements

IObjectQueryTQuery, TObjectGetEnumerableTypedResultAsync(CommandBehavior, Boolean, NullableCancellationToken)
IObjectQueryTQuery, TObjectGetEnumerableTypedResultAsync(CommandBehavior, Boolean, NullableCancellationToken)
Exceptions
ExceptionCondition
NotSupportedExceptionThrown when the query does not support reader.
See Also