Share via


DbRawSqlQuery<TElement>.MinAsync Method

Definition

Overloads

MinAsync()

Asynchronously returns the minimum value of the query.

MinAsync(CancellationToken)

Asynchronously returns the minimum value of the query.

MinAsync()

Asynchronously returns the minimum value of the query.

public System.Threading.Tasks.Task<TElement> MinAsync ();
member this.MinAsync : unit -> System.Threading.Tasks.Task<'Element>
Public Function MinAsync () As Task(Of TElement)

Returns

Task<TElement>

A task that represents the asynchronous operation. The task result contains the minimum value in the query result.

Remarks

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.

Applies to

MinAsync(CancellationToken)

Asynchronously returns the minimum value of the query.

public System.Threading.Tasks.Task<TElement> MinAsync (System.Threading.CancellationToken cancellationToken);
member this.MinAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Element>

Parameters

cancellationToken
CancellationToken

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

Returns

Task<TElement>

A task that represents the asynchronous operation. The task result contains the minimum value in the query result.

Remarks

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.

Applies to