,System.Int32)} ,System.TimeSpan)} ,System.TimeSpan,System.Reactive.Concurrency.IScheduler)}
Qbservable.SkipLast(IQbservable, int) method¶
Defined in
Type: Qbservable
Namespace: System.Reactive.Linq
Assembly: System.Reactive.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public static IQbservable<TSource> SkipLast<TSource>(this IQbservable<TSource> source, int count) - 2.
public static IQbservable<TSource> SkipLast<TSource>(this IQbservable<TSource> source, TimeSpan duration) - 3.
public static IQbservable<TSource> SkipLast<TSource>(this IQbservable<TSource> source, TimeSpan duration, IScheduler scheduler)
1. Overload¶
public static IQbservable<TSource> SkipLast<TSource>(this IQbservable<TSource> source, int count)
Summary: Bypasses a specified number of elements at the end of an observable sequence.
Type parameters
| Name | Description |
|---|---|
TSource | The type of the elements in the source sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
source | [IQbservable | Source sequence. |
count | int | Number of elements to bypass at the end of the source sequence. |
Returns: IQbservable
Remarks
This operator accumulates a queue with a length enough to store the first count elements. As more elements are
received, elements are taken from the front of the queue and produced on the result sequence. This causes elements to be delayed.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source is null. |
| System.ArgumentOutOfRangeException | count is less than zero. |
2. Overload¶
public static IQbservable<TSource> SkipLast<TSource>(this IQbservable<TSource> source, TimeSpan duration)
Summary: Skips elements for the specified duration from the end of the observable source sequence.
Type parameters
| Name | Description |
|---|---|
TSource | The type of the elements in the source sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
source | [IQbservable | Source sequence to skip elements for. |
duration | TimeSpan | Duration for skipping elements from the end of the sequence. |
Returns: IQbservable
Remarks
This operator accumulates a queue with a length enough to store elements received during the initial duration window.
As more elements are received, elements older than the specified duration are taken from the queue and produced on the
result sequence. This causes elements to be delayed with duration.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source is null. |
| System.ArgumentOutOfRangeException | duration is less than TimeSpan.Zero. |
3. Overload¶
public static IQbservable<TSource> SkipLast<TSource>(this IQbservable<TSource> source, TimeSpan duration, IScheduler scheduler)
Summary: Skips elements for the specified duration from the end of the observable source sequence, using the specified scheduler to run timers.
Type parameters
| Name | Description |
|---|---|
TSource | The type of the elements in the source sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
source | [IQbservable | Source sequence to skip elements for. |
duration | TimeSpan | Duration for skipping elements from the end of the sequence. |
scheduler | [IScheduler](# | Scheduler to run the timer on. |
Returns: IQbservable
Remarks
This operator accumulates a queue with a length enough to store elements received during the initial duration window.
As more elements are received, elements older than the specified duration are taken from the queue and produced on the
result sequence. This causes elements to be delayed with duration.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source or scheduler is null. |
| System.ArgumentOutOfRangeException | duration is less than TimeSpan.Zero. |