Queryable.TakeLast<TSource>(IQueryable<TSource>, Int32) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
countson source öğ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> ^ TakeLast(System::Linq::IQueryable<TSource> ^ source, int count);
public static System.Linq.IQueryable<TSource> TakeLast<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> TakeLast<TSource>(this System.Linq.IQueryable<TSource> source, int count);
static member TakeLast : 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 TakeLast : System.Linq.IQueryable<'Source> * int -> System.Linq.IQueryable<'Source>
<Extension()>
Public Function TakeLast(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 örneği.
- count
- Int32
Sorgulanabilir sıranın sonundan alınması gereken öğe sayısı.
Döndürülenler
öğesinden countson 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 boş bir sıra döndürür.