CqlQueryExtensionsTakeTSource Method |
Returns a CqlQuery which after execution will return IEnumerable<TSource>
with specified number of contiguous elements from the start of a sequence.
To execute this CqlQuery use Execute() method.
Namespace: Cassandra.Data.LinqAssembly: Cassandra (in Cassandra.dll) Version: 3.2.0
Syntax public static CqlQuery<TSource> Take<TSource>(
this CqlQuery<TSource> source,
int count
)
Parameters
- source
- Type: Cassandra.Data.LinqCqlQueryTSource
The CqlQuery<TSource> to return the first element of. - count
- Type: SystemInt32
The number of elements to return.
Type Parameters
- TSource
- The type of the elements of source.
Return Value
Type:
CqlQueryTSourcea CqlQuery<TSource> which after execution will return IEnumerable<TSource>
with specified number of contiguous elements from the start of a sequence.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
CqlQueryTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also