Qbservable.Create(Of TSource) Method (IQbservableProvider, Expression(Of Func(Of IObserver(Of 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)

<ExtensionAttribute> _
Public Shared Function Create(Of TSource) ( _
	provider As IQbservableProvider, _
	subscribe As Expression(Of Func(Of IObserver(Of TSource), IDisposable)) _
) As IQbservable(Of TSource)
Dim provider As IQbservableProvider
Dim subscribe As Expression(Of Func(Of IObserver(Of TSource), IDisposable))
Dim returnValue As IQbservable(Of TSource)

returnValue = provider.Create(subscribe)

Type Parameters


The type of source.


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

Return Value

Type: System.Reactive.Linq.IQbservable(Of 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.