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
| Name | Description |
|---|---|
TResult | The type used for the IObservable type parameter of the resulting sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
Returns: IQbservable
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
| Name | Description |
|---|---|
TResult | The type used for the IObservable type parameter of the resulting sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
scheduler | [IScheduler](# | Scheduler to send the termination call on. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | scheduler 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
| Name | Description |
|---|---|
TResult | The type used for the IObservable type parameter of the resulting sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
scheduler | [IScheduler](# | Scheduler to send the termination call on. |
witness | TResult | Object 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
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | scheduler is null. |
4. Overload¶
public static IQbservable<TResult> Empty<TResult>(this IQbservableProvider provider, TResult witness)
Summary: Returns an empty observable sequence.
Type parameters
| Name | Description |
|---|---|
TResult | The type used for the IObservable type parameter of the resulting sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
witness | TResult | Object 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