Język

AsyncEnumerable.Where Metoda

Definicja

Przeciążenia

Nazwa Opis
Where<TSource>(IAsyncEnumerable<TSource>, Func<TSource,Boolean>)

Filtruje sekwencję wartości na podstawie predykatu.

Where<TSource>(IAsyncEnumerable<TSource>, Func<TSource,Int32,Boolean>)

Filtruje sekwencję wartości na podstawie predykatu. Indeks każdego elementu jest używany w logice funkcji predykatu.

Where<TSource>(IAsyncEnumerable<TSource>, Func<TSource,Int32,CancellationToken,ValueTask<Boolean>>)

Filtruje sekwencję wartości na podstawie predykatu. Indeks każdego elementu jest używany w logice funkcji predykatu.

Where<TSource>(IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<Boolean>>)

Filtruje sekwencję wartości na podstawie predykatu.

Where<TSource>(IAsyncEnumerable<TSource>, Func<TSource,Boolean>)

Źródło:
Where.cs
Źródło:
Where.cs
Źródło:
Where.cs
Źródło:
Where.cs

Filtruje sekwencję wartości na podstawie predykatu.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TSource> ^ Where(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, bool> ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable<TSource> Where<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,bool> predicate);
static member Where : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, bool> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function Where(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, Boolean)) As IAsyncEnumerable(Of TSource)

Parametry typu

TSource

Typ elementów elementu source.

Parametry

source
IAsyncEnumerable<TSource>

Element do filtrowania IAsyncEnumerable<T> .

predicate
Func<TSource,Boolean>

Funkcja do testowania każdego elementu dla warunku.

Zwraca

IAsyncEnumerable<TSource>

Element IAsyncEnumerable<T> zawierający elementy z sekwencji danych wejściowych, które spełniają warunek.

Wyjątki

Parametr predicate ma wartość null.

Dotyczy

Where<TSource>(IAsyncEnumerable<TSource>, Func<TSource,Int32,Boolean>)

Źródło:
Where.cs
Źródło:
Where.cs
Źródło:
Where.cs
Źródło:
Where.cs

Filtruje sekwencję wartości na podstawie predykatu. Indeks każdego elementu jest używany w logice funkcji predykatu.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TSource> ^ Where(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, int, bool> ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable<TSource> Where<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,int,bool> predicate);
static member Where : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, bool> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function Where(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, Integer, Boolean)) As IAsyncEnumerable(Of TSource)

Parametry typu

TSource

Typ elementów elementu source.

Parametry

source
IAsyncEnumerable<TSource>

Element do filtrowania IAsyncEnumerable<T> .

predicate
Func<TSource,Int32,Boolean>

Funkcja do testowania każdego elementu dla warunku; drugi parametr funkcji reprezentuje indeks elementu źródłowego.

Zwraca

IAsyncEnumerable<TSource>

Element IAsyncEnumerable<T> zawierający elementy z sekwencji danych wejściowych, które spełniają warunek.

Wyjątki

Parametr predicate ma wartość null.

Dotyczy

Where<TSource>(IAsyncEnumerable<TSource>, Func<TSource,Int32,CancellationToken,ValueTask<Boolean>>)

Źródło:
Where.cs
Źródło:
Where.cs
Źródło:
Where.cs
Źródło:
Where.cs

Filtruje sekwencję wartości na podstawie predykatu. Indeks każdego elementu jest używany w logice funkcji predykatu.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TSource> ^ Where(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> Where<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,int,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<bool>> predicate);
static member Where : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<bool>> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function Where(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, Integer, CancellationToken, ValueTask(Of Boolean))) As IAsyncEnumerable(Of TSource)

Parametry typu

TSource

Typ elementów elementu source.

Parametry

source
IAsyncEnumerable<TSource>

Element do filtrowania IAsyncEnumerable<T> .

predicate
Func<TSource,Int32,CancellationToken,ValueTask<Boolean>>

Funkcja do testowania każdego elementu dla warunku; drugi parametr funkcji reprezentuje indeks elementu źródłowego.

Zwraca

IAsyncEnumerable<TSource>

Element IAsyncEnumerable<T> zawierający elementy z sekwencji danych wejściowych, które spełniają warunek.

Wyjątki

Parametr predicate ma wartość null.

Dotyczy

Where<TSource>(IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<Boolean>>)

Źródło:
Where.cs
Źródło:
Where.cs
Źródło:
Where.cs
Źródło:
Where.cs

Filtruje sekwencję wartości na podstawie predykatu.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TSource> ^ Where(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<bool>> ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable<TSource> Where<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<bool>> predicate);
static member Where : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<bool>> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function Where(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, CancellationToken, ValueTask(Of Boolean))) As IAsyncEnumerable(Of TSource)

Parametry typu

TSource

Typ elementów elementu source.

Parametry

source
IAsyncEnumerable<TSource>

Element do filtrowania IAsyncEnumerable<T> .

predicate
Func<TSource,CancellationToken,ValueTask<Boolean>>

Funkcja do testowania każdego elementu dla warunku.

Zwraca

IAsyncEnumerable<TSource>

Element IAsyncEnumerable<T> zawierający elementy z sekwencji danych wejściowych, które spełniają warunek.

Wyjątki

Parametr predicate ma wartość null.

Dotyczy