AsyncEnumerable.TakeWhile メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| TakeWhile<TSource>(IAsyncEnumerable<TSource>, Func<TSource,Boolean>) |
指定した条件が true である限り、シーケンスから要素を返します。 |
| TakeWhile<TSource>(IAsyncEnumerable<TSource>, Func<TSource,Int32,Boolean>) |
指定した条件が true である限り、シーケンスから要素を返します。 要素のインデックスは、述語関数のロジックで使用されます。 |
| TakeWhile<TSource>(IAsyncEnumerable<TSource>, Func<TSource,Int32,CancellationToken,ValueTask<Boolean>>) |
指定した条件が true である限り、シーケンスから要素を返します。 要素のインデックスは、述語関数のロジックで使用されます。 |
| TakeWhile<TSource>(IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<Boolean>>) |
指定した条件が true である限り、シーケンスから要素を返します。 |
TakeWhile<TSource>(IAsyncEnumerable<TSource>, Func<TSource,Boolean>)
- ソース:
- TakeWhile.cs
- ソース:
- TakeWhile.cs
- ソース:
- TakeWhile.cs
指定した条件が true である限り、シーケンスから要素を返します。
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TSource> ^ TakeWhile(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, bool> ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable<TSource> TakeWhile<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,bool> predicate);
static member TakeWhile : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, bool> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function TakeWhile(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, Boolean)) As IAsyncEnumerable(Of TSource)
型パラメーター
- TSource
ソースの要素の型。
パラメーター
- source
- IAsyncEnumerable<TSource>
要素を返すシーケンス。
返品
テストが終了した要素の前に発生する入力シーケンスの要素を格納する IAsyncEnumerable<T> 。
例外
predicate は nullです。
適用対象
TakeWhile<TSource>(IAsyncEnumerable<TSource>, Func<TSource,Int32,Boolean>)
- ソース:
- TakeWhile.cs
- ソース:
- TakeWhile.cs
- ソース:
- TakeWhile.cs
指定した条件が true である限り、シーケンスから要素を返します。 要素のインデックスは、述語関数のロジックで使用されます。
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TSource> ^ TakeWhile(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, int, bool> ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable<TSource> TakeWhile<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,int,bool> predicate);
static member TakeWhile : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, bool> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function TakeWhile(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, Integer, Boolean)) As IAsyncEnumerable(Of TSource)
型パラメーター
- TSource
ソースの要素の型。
パラメーター
- source
- IAsyncEnumerable<TSource>
要素を返すシーケンス。
返品
テストが終了した要素の前に発生する入力シーケンスの要素を格納する IAsyncEnumerable<T> 。
例外
predicate は nullです。
適用対象
TakeWhile<TSource>(IAsyncEnumerable<TSource>, Func<TSource,Int32,CancellationToken,ValueTask<Boolean>>)
- ソース:
- TakeWhile.cs
- ソース:
- TakeWhile.cs
- ソース:
- TakeWhile.cs
指定した条件が true である限り、シーケンスから要素を返します。 要素のインデックスは、述語関数のロジックで使用されます。
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TSource> ^ TakeWhile(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, int, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<bool>> ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable<TSource> TakeWhile<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,int,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<bool>> predicate);
static member TakeWhile : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<bool>> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function TakeWhile(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, Integer, CancellationToken, ValueTask(Of Boolean))) As IAsyncEnumerable(Of TSource)
型パラメーター
- TSource
ソースの要素の型。
パラメーター
- source
- IAsyncEnumerable<TSource>
要素を返すシーケンス。
- predicate
- Func<TSource,Int32,CancellationToken,ValueTask<Boolean>>
条件の各要素をテストする関数。
返品
テストが終了した要素の前に発生する入力シーケンスの要素を格納する IAsyncEnumerable<T> 。
例外
predicate は nullです。
適用対象
TakeWhile<TSource>(IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<Boolean>>)
- ソース:
- TakeWhile.cs
- ソース:
- TakeWhile.cs
- ソース:
- TakeWhile.cs
指定した条件が true である限り、シーケンスから要素を返します。
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TSource> ^ TakeWhile(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<bool>> ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable<TSource> TakeWhile<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<bool>> predicate);
static member TakeWhile : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<bool>> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function TakeWhile(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, CancellationToken, ValueTask(Of Boolean))) As IAsyncEnumerable(Of TSource)
型パラメーター
- TSource
ソースの要素の型。
パラメーター
- source
- IAsyncEnumerable<TSource>
要素を返すシーケンス。
- predicate
- Func<TSource,CancellationToken,ValueTask<Boolean>>
条件の各要素をテストする関数。
返品
テストが終了した要素の前に発生する入力シーケンスの要素を格納する IAsyncEnumerable<T> 。
例外
predicate は nullです。