Qbservable.Defer<TValue> Method

Returns a queryable observable sequence that invokes the observable factory whenever a new observer subscribes.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Defer(Of TValue) ( _
    provider As IQbservableProvider, _
    observableFactory As Expression(Of Func(Of IObservable(Of TValue))) _
) As IQbservable(Of TValue)
'Usage
Dim provider As IQbservableProvider
Dim observableFactory As Expression(Of Func(Of IObservable(Of TValue)))
Dim returnValue As IQbservable(Of TValue)

returnValue = provider.Defer(observableFactory)
public static IQbservable<TValue> Defer<TValue>(
    this IQbservableProvider provider,
    Expression<Func<IObservable<TValue>>> observableFactory
)
[ExtensionAttribute]
public:
generic<typename TValue>
static IQbservable<TValue>^ Defer(
    IQbservableProvider^ provider, 
    Expression<Func<IObservable<TValue>^>^>^ observableFactory
)
static member Defer : 
        provider:IQbservableProvider * 
        observableFactory:Expression<Func<IObservable<'TValue>>> -> IQbservable<'TValue> 
JScript does not support generic types and methods.

Type Parameters

  • TValue
    The type of value.

Parameters

Return Value

Type: System.Reactive.Linq.IQbservable<TValue>
The queryable observable sequence whose observers trigger an invocation of the given queryable observable factory function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservableProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Qbservable Class

System.Reactive.Linq Namespace