Qbservable.Create(TSource) Method (IQbservableProvider, Expression(Func(IObserver(TSource), IDisposable)))

Creates a queryable observable sequence from a specified subscribe method implementation with a specified subscribe.

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

static member Create : 
        provider:IQbservableProvider * 
        subscribe:Expression<Func<IObserver<'TSource>, IDisposable>> -> IQbservable<'TSource> 

Type Parameters


The type of source.


Type: System.Reactive.Linq.IQbservableProvider
The local Qbservable provider.
Type: System.Linq.Expressions.Expression(Func(IObserver(TSource), IDisposable))
The implementation of the resulting queryable observable sequence's subscribe method.

Return Value

Type: System.Reactive.Linq.IQbservable(TSource)
The queryable observable sequence with the specified implementation for the subscribe method.

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.