Dela via


Observable.Empty<TResult> Method (IScheduler)

Returns an empty observable sequence with the specified scheduler.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
Public Shared Function Empty(Of TResult) ( _
    scheduler As IScheduler _
) As IObservable(Of TResult)
'Usage
Dim scheduler As IScheduler
Dim returnValue As IObservable(Of TResult)

returnValue = Observable.Empty(scheduler)
public static IObservable<TResult> Empty<TResult>(
    IScheduler scheduler
)
public:
generic<typename TResult>
static IObservable<TResult>^ Empty(
    IScheduler^ scheduler
)
static member Empty : 
        scheduler:IScheduler -> IObservable<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TResult
    The type of result.

Parameters

Return Value

Type: System.IObservable<TResult>
The observable sequence with no elements.

See Also

Reference

Observable Class

Empty Overload

System.Reactive.Linq Namespace