Skip to content

Qbservable.Empty(IQbservableProvider) method

Defined in

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

Applies to

netstandard2.0

Overloads

  • 1. public static IQbservable<TResult> Empty<TResult>(this IQbservableProvider provider)
  • 2. public static IQbservable<TResult> Empty<TResult>(this IQbservableProvider provider, IScheduler scheduler)
  • 3. public static IQbservable<TResult> Empty<TResult>(this IQbservableProvider provider, IScheduler scheduler, TResult witness)
  • 4. public static IQbservable<TResult> Empty<TResult>(this IQbservableProvider provider, TResult witness)

1. Overload

public static IQbservable<TResult> Empty<TResult>(this IQbservableProvider provider)

Summary: Returns an empty observable sequence.

Type parameters

NameDescription
TResultThe type used for the IObservable type parameter of the resulting sequence.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.

Returns: IQbservable -- An observable sequence with no elements.

2. Overload

public static IQbservable<TResult> Empty<TResult>(this IQbservableProvider provider, IScheduler scheduler)

Summary: Returns an empty observable sequence, using the specified scheduler to send out the single OnCompleted message.

Type parameters

NameDescription
TResultThe type used for the IObservable type parameter of the resulting sequence.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
scheduler[IScheduler](#Scheduler to send the termination call on.

Returns: IQbservable -- An observable sequence with no elements.

Exceptions

TypeCondition
System.ArgumentNullExceptionscheduler is null.

3. Overload

public static IQbservable<TResult> Empty<TResult>(this IQbservableProvider provider, IScheduler scheduler, TResult witness)

Summary: Returns an empty observable sequence, using the specified scheduler to send out the single OnCompleted message.

Type parameters

NameDescription
TResultThe type used for the IObservable type parameter of the resulting sequence.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
scheduler[IScheduler](#Scheduler to send the termination call on.
witnessTResultObject solely used to infer the type of the TResult type parameter. This parameter is typically used when creating a sequence of anonymously typed elements.

Returns: IQbservable -- An observable sequence with no elements.

Exceptions

TypeCondition
System.ArgumentNullExceptionscheduler is null.

4. Overload

public static IQbservable<TResult> Empty<TResult>(this IQbservableProvider provider, TResult witness)

Summary: Returns an empty observable sequence.

Type parameters

NameDescription
TResultThe type used for the IObservable type parameter of the resulting sequence.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
witnessTResultObject solely used to infer the type of the TResult type parameter. This parameter is typically used when creating a sequence of anonymously typed elements.

Returns: IQbservable -- An observable sequence with no elements.