Queryable.SkipLast<TSource>(IQueryable<TSource>, Int32) Yöntem

Tanım

Kaynak sorgulanabilir dizisinin son source öğelerinin atlanmış olduğu count öğelerini içeren sorgulanabilir yeni bir sıra döndürür.

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)

Tür Parametreleri

TSource

Sorgulanabilir dizideki öğelerin türü.

Parametreler

source
IQueryable<TSource>

Sorgulanabilir bir sıra.

count
Int32

Sorgulanabilir sıranın sonundan atlanacak öğe sayısı.

Döndürülenler

IQueryable<TSource>

Sorgulanabilir sıranın sonundaki eksi count öğelerden source öğeleri içeren sorgulanabilir yeni bir sıra.

Öznitelikler

Özel durumlar

source, null'e eşittir.

Açıklamalar

Pozitif bir sayı değilse count , bu yöntem sorgulanabilir dizinin özdeş source bir kopyasını döndürür.

Şunlara uygulanır