Skip to content

)}

Qbservable.AsObservable(IQbservable) method

Defined in

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

Applies to

netstandard2.0

public static IObservable<TSource> AsObservable<TSource>(this IQbservable<TSource> source)

Summary: Returns the input typed as an IObservable. This operator is used to separate the part of the query that's captured as an expression tree from the part that's executed locally.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#An [IQbservable](# sequence to convert to an IObservable sequence.

Returns: IObservable -- The original source object, but typed as an IObservable.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.