Method Sample
Sample<TSource>(IMongoQueryable<TSource>, long)
Returns a sample of the elements in the source
.
public static IMongoQueryable<TSource> Sample<TSource>(this IMongoQueryable<TSource> source, long count)
Parameters
source
IMongoQueryable<TSource>An IMongoQueryable<T> to return a sample of.
count
longThe number of elements in the sample.
Returns
- IMongoQueryable<TSource>
A sample of the elements in the
source
.
Type Parameters
TSource
The type of the elements of
source
.