DbRawSqlQuery<TElement>::ToArrayAsync Method

Entity Framework 6.0
 

Creates an array from the query by enumerating it asynchronously.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodToArrayAsync()

Creates an array from the query by enumerating it asynchronously.

System_CAPS_pubmethodToArrayAsync(CancellationToken)

Creates an array from the query by enumerating it asynchronously.

Return to top

DbRawSqlQuery<TElement>::ToArrayAsync Method ()

Creates an array from the query by enumerating it asynchronously.

public:
Task<array<TElement>^>^ ToArrayAsync()

Return Value

Type: System.Threading.Tasks::Task<array<TElement>^>^

A task that represents the asynchronous operation. The task result contains an array that contains elements from the input sequence.

Multiple active operations on the same context instance are not supported. Use 'await' to ensure that any asynchronous operations have completed before calling another method on this context.

Return to top

DbRawSqlQuery<TElement>::ToArrayAsync Method (CancellationToken)

Creates an array from the query by enumerating it asynchronously.

public:
Task<array<TElement>^>^ ToArrayAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.Threading::CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Return Value

Type: System.Threading.Tasks::Task<array<TElement>^>^

A task that represents the asynchronous operation. The task result contains an array that contains elements from the input sequence.

Multiple active operations on the same context instance are not supported. Use 'await' to ensure that any asynchronous operations have completed before calling another method on this context.

Return to top
Show: