Queryable.SkipLast<TSource>(IQueryable<TSource>, Int32) Метод

Определение

Возвращает новую запрашиваемую последовательность, содержащую элементы из source с последними count элементами исходной запрашиваемой последовательности.

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);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Enumerating collections as IQueryable can require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")]
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>
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Enumerating collections as IQueryable can require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")>]
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

Тип элементов в запрашиваемой последовательности.

Параметры

source
IQueryable<TSource>

Запрашиваемая последовательность.

count
Int32

Количество элементов, пропущенных из конца запрашиваемой последовательности.

Возвращаемое значение

IQueryable<TSource>

Новая запрашиваемая последовательность, содержащая элементы из source минус count элементов из конца запрашиваемой последовательности.

Атрибуты

Исключения

source равно null.

Комментарии

Если count значение не является положительным, этот метод возвращает идентичную копию запрашиваемой source последовательности.

Применяется к