Export (0) Print
Expand All
Expand Minimize

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)

public static IQbservable<TValue> Defer<TValue>(
	this IQbservableProvider provider,
	Expression<Func<IObservable<TValue>>> observableFactory

Type Parameters


The type of value.


Type: System.Reactive.Linq.IQbservableProvider
The local Qbservable provider.
Type: System.Linq.Expressions.Expression<Func<IObservable<TValue>>>
The queryable observable factory function to invoke for each observer that subscribes to the resulting sequence.

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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.
© 2015 Microsoft