Table of Contents

Method Take

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.dll

Take<TSource>(IQueryable<TSource>, long)

Returns a specified number of contiguous elements from the start of a sequence.

public static IQueryable<TSource> Take<TSource>(this IQueryable<TSource> source, long count)

Parameters

source IQueryable<TSource>

The sequence to return elements from.

count long

The number of elements to return.

Returns

IQueryable<TSource>

An IQueryable<T> that contains the specified number of elements from the start of source.

Type Parameters

TSource

The type of the elements of source.