The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPQueryExtensions.MinAsync<T, TResult>(IQueryable<T>, Expression<Func<T, TResult>>, CancellationToken) Method

Asynchronously gets the minimum value from a specified query. Uses a lambda expression to obtain values.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public static Task<TResult> MinAsync<T, TResult>(
    this IQueryable<T> query,
    Expression<Func<T, TResult>> selector,
    CancellationToken cancellationToken = default(CancellationToken)
)
<ExtensionAttribute>
Public Shared Function MinAsync(Of T, TResult)(
    query As IQueryable(Of T),
    selector As Expression(Of Func(Of T, TResult)),
    cancellationToken As CancellationToken = Nothing
) As Task(Of TResult)
public static Task<TResult> MinAsync<T, TResult>(
    this IQueryable<T> query,
    Expression<Func<T, TResult>> selector,
    CancellationToken cancellationToken = default(CancellationToken)
)
<ExtensionAttribute>
Public Shared Function MinAsync(Of T, TResult)(
    query As IQueryable(Of T),
    selector As Expression(Of Func(Of T, TResult)),
    cancellationToken As CancellationToken = Nothing
) As Task(Of TResult)

Parameters

Name Type Description
query IQueryable<T>

An XPQuery<T> that specifies a persistent object selection.

selector Expression<Func<T, TResult>>

A lambda expression that gets a value from a persistent object.

cancellationToken CancellationToken

A CancellationToken object that delivers a cancellation notice to the running operation.

Parameters

Name Type Description
query IQueryable<T>

An XPQuery<T> that specifies a persistent object selection.

selector Expression<Func<T, TResult>>

A lambda expression that gets a value from a persistent object.

cancellationToken CancellationToken

A CancellationToken object that delivers a cancellation notice to the running operation.

Returns

Type Description
Task<TResult>

A Task that returns an object. This object is the minimum value.

Returns

Type Description
Task<TResult>

A Task that returns an object. This object is the minimum value.

Type Parameters

Name Description
T
TResult

Type Parameters

Name Description
T
TResult
See Also