AsyncEnumerable.SkipLast<TSource> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个新序列,其中包含 source 从中省略源集合的最后 count 一个元素的元素。
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TSource> ^ SkipLast(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, int count);
public static System.Collections.Generic.IAsyncEnumerable<TSource> SkipLast<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, int count);
static member SkipLast : System.Collections.Generic.IAsyncEnumerable<'Source> * int -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function SkipLast(Of TSource) (source As IAsyncEnumerable(Of TSource), count As Integer) As IAsyncEnumerable(Of TSource)
类型参数
- TSource
的元素 source的类型。
参数
- source
- IAsyncEnumerable<TSource>
要从中返回元素的一个 IAsyncEnumerable<T> 。
- count
- Int32
要从序列末尾省略的元素数。
返回
IAsyncEnumerable<TSource>
包含序列 source 末尾的减号 count 元素的新序列。
例外
source 是 null。