The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
QueryableExtensions::Take<TSource> Method (IQueryable<TSource>^, Expression<Func<Int32>^>^)
Entity Framework 6.0
Returns a specified number of contiguous elements from the start of a sequence.
Assembly: EntityFramework (in EntityFramework.dll)
public: generic<typename TSource> [SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")] [ExtensionAttribute] static IQueryable<TSource>^ Take( IQueryable<TSource>^ source, Expression<Func<int>^>^ countAccessor )
Parameters
- source
-
Type:
System.Linq::IQueryable<TSource>^
The sequence to return elements from.
- countAccessor
-
Type:
System.Linq.Expressions::Expression<Func<Int32>^>^
An expression that evaluates to the number of elements to return.
Return Value
Type: System.Linq::IQueryable<TSource>^A sequence that contains the specified number of elements from the start of the input sequence.
Type Parameters
- TSource
The type of the elements of source.
Show: