Method Slice
Slice(FieldDefinition<TSource>, int)
Creates an array slice projection.
public ProjectionDefinition<TSource> Slice(FieldDefinition<TSource> field, int limit)
Parameters
field
FieldDefinition<TSource>The field.
limit
intThe limit.
Returns
- ProjectionDefinition<TSource>
An array slice projection.
Slice(FieldDefinition<TSource>, int, int)
Creates an array slice projection.
public ProjectionDefinition<TSource> Slice(FieldDefinition<TSource> field, int skip, int limit)
Parameters
field
FieldDefinition<TSource>The field.
skip
intThe skip.
limit
intThe limit.
Returns
- ProjectionDefinition<TSource>
An array slice projection.
Slice(Expression<Func<TSource, object>>, int)
Creates an array slice projection.
public ProjectionDefinition<TSource> Slice(Expression<Func<TSource, object>> field, int limit)
Parameters
field
Expression<Func<TSource, object>>The field.
limit
intThe limit.
Returns
- ProjectionDefinition<TSource>
An array slice projection.
Slice(Expression<Func<TSource, object>>, int, int)
Creates an array slice projection.
public ProjectionDefinition<TSource> Slice(Expression<Func<TSource, object>> field, int skip, int limit)
Parameters
field
Expression<Func<TSource, object>>The field.
skip
intThe skip.
limit
intThe limit.
Returns
- ProjectionDefinition<TSource>
An array slice projection.