Skip to content

,System.Linq.Expressions.Expression})}

Qbservable.All(IQbservable, Expression>) method

Defined in

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

Applies to

netstandard2.0

public static IQbservable<bool> All<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, bool>> predicate)

Summary: Determines whether all elements of an observable sequence satisfy a condition.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#An observable sequence whose elements to apply the predicate to.
predicateExpression>A function to test each element for a condition.

Returns: IQbservable -- An observable sequence containing a single element determining whether all elements in the source sequence pass the test in the specified predicate.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or predicate is null.