Share via


IAsyncQueryable<TEntity> Interface

Definition

Provides functionality to evaluate queries against the project system API model.

public interface IAsyncQueryable<TEntity> : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable, System.Collections.Generic.IEnumerable<TEntity>, System.Collections.Generic.IReadOnlyCollection<TEntity>
type IAsyncQueryable<'Entity> = interface
    interface IAsyncQueryable
    interface IReadOnlyCollection<'Entity>
    interface seq<'Entity>
    interface IEnumerable
Public Interface IAsyncQueryable(Of TEntity)
Implements IAsyncQueryable, IEnumerable(Of TEntity), IReadOnlyCollection(Of TEntity)

Type Parameters

TEntity

The type of items in the query result.

Implements

Methods

QueryAsync(CancellationToken)

Starts a query and receive results asynchronously. Note: the result can only be accessed once, and cannot be reset.

QueryAsync(ICommonQueryableSpace, CancellationToken)

Starts a query and receive results asynchronously. Note: the result can only be accessed once, and cannot be reset.

SubscribeAsync(ICommonQueryableSpace, IObserver<IQueryResults<TEntity>>, CancellationToken)

Subscribes results from a query, which automatically reruns when data source is changed.

SubscribeAsync(ICommonQueryableSpace, IObserver<IQueryResults<TEntity>>)

Subscribes results from a query, which automatically reruns when data source is changed.

SubscribeAsync(IObserver<IQueryResults<TEntity>>, CancellationToken)

Subscribes results from a query, which automatically reruns when data source is changed.

SubscribeAsync(IObserver<IQueryResults<TEntity>>)

Subscribes results from a query, which automatically reruns when data source is changed.

TrackUpdatesAsync(IObserver<IQueryTrackUpdates<TEntity>>, CancellationToken)

Tracks a query, which automatically reruns when the data source is changed.

Extension Methods

AsUpdatable<TEntity>(IAsyncQueryable<TEntity>)

Initialize an update action.

Get<TSource,TResult>(IAsyncQueryable<TSource>, Expression<Func<TSource,IAsyncQueryable<TResult>>>)

Gets a child collection to be returned from the query.

Skip<TEntity>(IAsyncQueryable<TEntity>, Int32)

Bypasses a specified number of elements in a query and returns the remaining elements.

Take<TEntity>(IAsyncQueryable<TEntity>, Int32)

Returns a specified number of elements from the query.

Where<TEntity>(IAsyncQueryable<TEntity>, Expression<Func<TEntity,Boolean>>)

Filters a sequence of values based on a predicate.

With<TEntity>(IAsyncQueryable<TEntity>, Expression<Func<TEntity,IAsyncQueryable>>, Boolean)
Obsolete.

Include a child collection in the query result.

With<TEntity>(IAsyncQueryable<TEntity>, Expression<Func<TEntity,IAsyncQueryable>>)

Include a child collection in the query result.

With<TEntity>(IAsyncQueryable<TEntity>, Expression<Func<TEntity,Object>>)

Include a specific property in the query result.

WithRequired<TEntity>(IAsyncQueryable<TEntity>, Expression<Func<TEntity,IAsyncQueryable>>)

Include a non-empty child collection in the query result.

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Applies to