Click or drag to resize
QueryableExtensionsTake Method
Returns a specified number of contiguous elements from the start of a sequence.

Namespace: Kettic.AspNet.Data.Extensions
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public static IQueryable Take(
	this IQueryable source,
	int count
)

Parameters

source
Type: System.LinqIQueryable
The sequence to return elements from.
count
Type: SystemInt32
The number of elements to return.

Return Value

Type: IQueryable
An IQueryable that contains the specified number of elements from the start of source.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable. 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).
Exceptions
ExceptionCondition
ArgumentNullExceptionsource is null.
See Also