AsyncQueryableExtensions.Take<TEntity> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a specified number of elements from the query.
public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TEntity> Take<TEntity> (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TEntity> source, int count) where TEntity : Microsoft.VisualStudio.ProjectSystem.Query.IEntity;
static member Take : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> * int -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)
<Extension()>
Public Function Take(Of TEntity As IEntity) (source As IAsyncQueryable(Of TEntity), count As Integer) As IAsyncQueryable(Of TEntity)
Type Parameters
- TEntity
Type of the elements in the query.
Parameters
- source
- IAsyncQueryable<TEntity>
The query provides the elements to filter out.
- count
- Int32
The number of elements to retain.
Returns
A new query where the new filter will be applied.