Queryable.SkipLast<TSource>(IQueryable<TSource>, Int32) Метод
Определение
Возвращает новую запрашиваемую последовательность, содержащую элементы из source
с исключенными count
элементами из конца исходной запрашиваемой последовательности.Returns a new queryable sequence that contains the elements from source
with the last count
elements of the source queryable sequence omitted.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Linq::IQueryable<TSource> ^ SkipLast(System::Linq::IQueryable<TSource> ^ source, int count);
public static System.Linq.IQueryable<TSource> SkipLast<TSource> (this System.Linq.IQueryable<TSource> source, int count);
static member SkipLast : System.Linq.IQueryable<'Source> * int -> System.Linq.IQueryable<'Source>
<Extension()>
Public Function SkipLast(Of TSource) (source As IQueryable(Of TSource), count As Integer) As IQueryable(Of TSource)
Параметры типа
- TSource
Тип элементов в последовательности, для которой выполняется запрос.The type of the elements in the queryable sequence.
Параметры
- source
- IQueryable<TSource>
Запрашиваемая последовательность.A queryable sequence.
- count
- Int32
Число элементов в конце запрашиваемой последовательности, которые необходимо исключить.The number of elements to omit from the end of the queryable sequence.
Возвращаемое значение
- IQueryable<TSource>
Новая запрашиваемая последовательность, содержащая элементы из source
с исключенными count
элементами из конца запрашиваемой последовательности.A new queryable sequence that contains the elements from source
minus count
elements from the end of the queryable sequence.
Исключения
source
имеет значение null
.source
is null
.
Комментарии
Если не является count
положительным числом, этот метод возвращает идентичную копию source
запрашиваемой последовательности.If count
is not a positive number, this method returns an identical copy of the source
queryable sequence.