AsyncEnumerable.SkipWhile 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 |
|---|---|
|
SkipWhile |
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. |
|
SkipWhile |
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function. |
|
SkipWhile |
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. |
|
SkipWhile |
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function. |
SkipWhile(IAsyncEnumerable, Func>)
- Source:
- SkipWhile.cs
- Source:
- SkipWhile.cs
- Source:
- SkipWhile.cs
- Source:
- SkipWhile.cs
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SkipWhile(System::Collections::Generic::IAsyncEnumerable ^ source, Func> ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable SkipWhile(this System.Collections.Generic.IAsyncEnumerable source, Func> predicate);
static member SkipWhile : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask> -> System.Collections.Generic.IAsyncEnumerable<'Source>
Public Function SkipWhile(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, CancellationToken, ValueTask(Of Boolean))) As IAsyncEnumerable(Of TSource)
Type Parameters
- TSource
The type of the elements of source.
Parameters
- source
-
IAsyncEnumerable
An IAsyncEnumerable
A function to test each element for a condition.
Returns
An IAsyncEnumerable
Exceptions
predicate is null.
Applies to
SkipWhile(IAsyncEnumerable, Func>)
- Source:
- SkipWhile.cs
- Source:
- SkipWhile.cs
- Source:
- SkipWhile.cs
- Source:
- SkipWhile.cs
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SkipWhile(System::Collections::Generic::IAsyncEnumerable ^ source, Func> ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable SkipWhile(this System.Collections.Generic.IAsyncEnumerable source, Func> predicate);
static member SkipWhile : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask> -> System.Collections.Generic.IAsyncEnumerable<'Source>
Public Function SkipWhile(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, Integer, CancellationToken, ValueTask(Of Boolean))) As IAsyncEnumerable(Of TSource)
Type Parameters
- TSource
The type of the elements of source.
Parameters
- source
-
IAsyncEnumerable
An IAsyncEnumerable
- predicate
-
Func
Int32,CancellationToken,ValueTask<Boolean>>
A function to test each element for a condition; the second parameter of the function represents the index of the source element.
Returns
An IAsyncEnumerable
Exceptions
predicate is null.
Applies to
SkipWhile(IAsyncEnumerable, Func)
- Source:
- SkipWhile.cs
- Source:
- SkipWhile.cs
- Source:
- SkipWhile.cs
- Source:
- SkipWhile.cs
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SkipWhile(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable SkipWhile(this System.Collections.Generic.IAsyncEnumerable source, Func predicate);
static member SkipWhile : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, bool> -> System.Collections.Generic.IAsyncEnumerable<'Source>
Public Function SkipWhile(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, Boolean)) As IAsyncEnumerable(Of TSource)
Type Parameters
- TSource
The type of the elements of source.
Parameters
- source
-
IAsyncEnumerable
An IAsyncEnumerable
- predicate
-
Func
Boolean>
A function to test each element for a condition.
Returns
An IAsyncEnumerable
Exceptions
predicate is null.
Applies to
SkipWhile(IAsyncEnumerable, Func)
- Source:
- SkipWhile.cs
- Source:
- SkipWhile.cs
- Source:
- SkipWhile.cs
- Source:
- SkipWhile.cs
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ SkipWhile(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^ predicate);
public static System.Collections.Generic.IAsyncEnumerable SkipWhile(this System.Collections.Generic.IAsyncEnumerable source, Func predicate);
static member SkipWhile : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, bool> -> System.Collections.Generic.IAsyncEnumerable<'Source>
Public Function SkipWhile(Of TSource) (source As IAsyncEnumerable(Of TSource), predicate As Func(Of TSource, Integer, Boolean)) As IAsyncEnumerable(Of TSource)
Type Parameters
- TSource
The type of the elements of source.
Parameters
- source
-
IAsyncEnumerable
An IAsyncEnumerable
A function to test each element for a condition; the second parameter of the function represents the index of the source element.
Returns
An IAsyncEnumerable
Exceptions
predicate is null.