Skip to content

,System.Int32)}

Qbservable.ElementAt(IQbservable, int) method

Defined in

Type: Qbservable Namespace: System.Reactive.Linq Assembly: System.Reactive.dll

Applies to

netstandard2.0

public static IQbservable<TSource> ElementAt<TSource>(this IQbservable<TSource> source, int index)

Summary: Returns the element at a specified index in a sequence.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#Observable sequence to return the element from.
indexintThe zero-based index of the element to retrieve.

Returns: IQbservable -- An observable sequence that produces the element at the specified position in the source sequence.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.
System.ArgumentOutOfRangeExceptionindex is less than zero.
System.ArgumentOutOfRangeException(Asynchronous) index is greater than or equal to the number of elements in the source sequence.