AsyncEnumerable.SelectMany Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
|
SelectMany |
Projects each element of a sequence to an IAsyncEnumerable |
|
SelectMany |
Projects each element of a sequence to an IEnumerable |
|
SelectMany |
Projects each element of a sequence to an IEnumerable |
|
SelectMany |
Projects each element of a sequence to an IEnumerable |
|
SelectMany |
Projects each element of a sequence to an IAsyncEnumerable |
|
SelectMany |
Projects each element of a sequence to an IEnumerable |
|
SelectMany |
Projects each element of a sequence to an IAsyncEnumerable |
|
SelectMany |
Projects each element of a sequence to an IEnumerable |
|
SelectMany |
Projects each element of a sequence to an IEnumerable |
|
SelectMany |
Projects each element of a sequence to an IEnumerable |
|
SelectMany |
Projects each element of a sequence to an IAsyncEnumerable |
|
SelectMany |
Projects each element of a sequence to an IEnumerable |
|
SelectMany |
Projects each element of a sequence to an IAsyncEnumerable |
SelectMany(IAsyncEnumerable, Func>, Func)
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
Projects each element of a sequence to an IAsyncEnumerable
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ collectionSelector, Func ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> collectionSelector, Func resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Collections.Generic.IAsyncEnumerable<'Collection>> * Func<'Source, 'Collection, 'Result> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, IAsyncEnumerable(Of TCollection)), resultSelector As Func(Of TSource, TCollection, TResult)) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
-
IAsyncEnumerable
A sequence of values to project.
- collectionSelector
-
Func
IAsyncEnumerable >
A transform function to apply to each element of the input sequence.
- resultSelector
-
Func
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerablecollectionSelector on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector is null.
Applies to
SelectMany(IAsyncEnumerable,
Func>>,
Func>)
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^>> ^ collectionSelector, Func> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func>> collectionSelector, Func> resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask>> * Func<'Source, 'Collection, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, CancellationToken, ValueTask(Of IEnumerable(Of TCollection))), resultSelector As Func(Of TSource, TCollection, CancellationToken, ValueTask(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
-
IAsyncEnumerable
A sequence of values to project.
- collectionSelector
-
Func
CancellationToken,ValueTask<IEnumerable >>
A transform function to apply to each element of the input sequence.
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerablecollectionSelector on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector is null.
Applies to
SelectMany(IAsyncEnumerable,
Func>>,
Func>)
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^>> ^ collectionSelector, Func> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func>> collectionSelector, Func> resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask>> * Func<'Source, 'Collection, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, Integer, CancellationToken, ValueTask(Of IEnumerable(Of TCollection))), resultSelector As Func(Of TSource, TCollection, CancellationToken, ValueTask(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
-
IAsyncEnumerable
A sequence of values to project.
- collectionSelector
-
Func
Int32,CancellationToken,ValueTask<IEnumerable >>
A transform function to apply to each element of the input sequence.
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerablecollectionSelector on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector is null.
Applies to
SelectMany(IAsyncEnumerable, Func>, Func)
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ collectionSelector, Func ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> collectionSelector, Func resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, seq<'Collection>> * Func<'Source, 'Collection, 'Result> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, Integer, IEnumerable(Of TCollection)), resultSelector As Func(Of TSource, TCollection, TResult)) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
-
IAsyncEnumerable
A sequence of values to project.
- collectionSelector
-
Func
Int32,IEnumerable >
A transform function to apply to each element of the input sequence.
- resultSelector
-
Func
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerablecollectionSelector on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector is null.
Applies to
SelectMany(IAsyncEnumerable,
Func>, Func>)
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
Projects each element of a sequence to an IAsyncEnumerable
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ collectionSelector, Func> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> collectionSelector, Func> resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Collections.Generic.IAsyncEnumerable<'Collection>> * Func<'Source, 'Collection, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, Integer, IAsyncEnumerable(Of TCollection)), resultSelector As Func(Of TSource, TCollection, CancellationToken, ValueTask(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
-
IAsyncEnumerable
A sequence of values to project.
- collectionSelector
-
Func
Int32,IAsyncEnumerable >
A transform function to apply to each element of the input sequence.
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerablecollectionSelector on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector is null.
Applies to
SelectMany(IAsyncEnumerable, Func>, Func)
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ collectionSelector, Func ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> collectionSelector, Func resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, seq<'Collection>> * Func<'Source, 'Collection, 'Result> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, IEnumerable(Of TCollection)), resultSelector As Func(Of TSource, TCollection, TResult)) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
-
IAsyncEnumerable
A sequence of values to project.
- collectionSelector
-
Func
IEnumerable >
A transform function to apply to each element of the input sequence.
- resultSelector
-
Func
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerablecollectionSelector on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector is null.
Applies to
SelectMany(IAsyncEnumerable,
Func>, Func>)
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
Projects each element of a sequence to an IAsyncEnumerable
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ collectionSelector, Func> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> collectionSelector, Func> resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Collections.Generic.IAsyncEnumerable<'Collection>> * Func<'Source, 'Collection, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, IAsyncEnumerable(Of TCollection)), resultSelector As Func(Of TSource, TCollection, CancellationToken, ValueTask(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
-
IAsyncEnumerable
A sequence of values to project.
- collectionSelector
-
Func
IAsyncEnumerable >
A transform function to apply to each element of the input sequence.
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerablecollectionSelector on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector is null.
Applies to
SelectMany(IAsyncEnumerable, Func>)
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, seq<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function SelectMany(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, Integer, IEnumerable(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TResult
The type of the elements of the sequence returned by selector.
Parameters
- source
-
IAsyncEnumerable
A sequence of values to project.
- selector
-
Func
Int32,IEnumerable >
A transform function to apply to each element.
Returns
An IAsyncEnumerable
Exceptions
selector is null.
Applies to
SelectMany(IAsyncEnumerable, Func>>)
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^>> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func>> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function SelectMany(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, Integer, CancellationToken, ValueTask(Of IEnumerable(Of TResult)))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TResult
The type of the elements of the sequence returned by selector.
Parameters
- source
-
IAsyncEnumerable
A sequence of values to project.
- selector
-
Func
Int32,CancellationToken,ValueTask<IEnumerable >>
A transform function to apply to each element.
Returns
An IAsyncEnumerable
Exceptions
selector is null.
Applies to
SelectMany(IAsyncEnumerable, Func>>)
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^>> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func>> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function SelectMany(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, CancellationToken, ValueTask(Of IEnumerable(Of TResult)))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TResult
The type of the elements of the sequence returned by selector.
Parameters
- source
-
IAsyncEnumerable
A sequence of values to project.
- selector
-
Func
CancellationToken,ValueTask<IEnumerable >>
A transform function to apply to each element.
Returns
An IAsyncEnumerable
Exceptions
selector is null.
Applies to
SelectMany(IAsyncEnumerable, Func>)
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
Projects each element of a sequence to an IAsyncEnumerable
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Collections.Generic.IAsyncEnumerable<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function SelectMany(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, Integer, IAsyncEnumerable(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TResult
The type of the elements of the sequence returned by selector.
Parameters
- source
-
IAsyncEnumerable
A sequence of values to project.
- selector
-
Func
Int32,IAsyncEnumerable >
A transform function to apply to each element.
Returns
An IAsyncEnumerable
Exceptions
selector is null.
Applies to
SelectMany(IAsyncEnumerable, Func>)
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, seq<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function SelectMany(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, IEnumerable(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TResult
The type of the elements of the sequence returned by selector.
Parameters
- source
-
IAsyncEnumerable
A sequence of values to project.
- selector
-
Func
IEnumerable >
A transform function to apply to each element.
Returns
An IAsyncEnumerable
Exceptions
selector is null.
Applies to
SelectMany(IAsyncEnumerable, Func>)
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
- Source:
- SelectMany.cs
Projects each element of a sequence to an IAsyncEnumerable
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Collections.Generic.IAsyncEnumerable<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function SelectMany(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, IAsyncEnumerable(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TResult
The type of the elements of the sequence returned by selector.
Parameters
- source
-
IAsyncEnumerable
A sequence of values to project.
- selector
-
Func
IAsyncEnumerable >
A transform function to apply to each element.
Returns
An IAsyncEnumerable
Exceptions
selector is null.