Qbservable.Create<TSource> Method (IQbservableProvider, Expression<Func<IObserver<TSource>, Action>>)
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)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Create(Of TSource) ( _
provider As IQbservableProvider, _
subscribe As Expression(Of Func(Of IObserver(Of TSource), Action)) _
) As IQbservable(Of TSource)
'Usage
Dim provider As IQbservableProvider
Dim subscribe As Expression(Of Func(Of IObserver(Of TSource), Action))
Dim returnValue As IQbservable(Of TSource)
returnValue = provider.Create(subscribe)
public static IQbservable<TSource> Create<TSource>(
this IQbservableProvider provider,
Expression<Func<IObserver<TSource>, Action>> subscribe
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IQbservable<TSource>^ Create(
IQbservableProvider^ provider,
Expression<Func<IObserver<TSource>^, Action^>^>^ subscribe
)
static member Create :
provider:IQbservableProvider *
subscribe:Expression<Func<IObserver<'TSource>, Action>> -> IQbservable<'TSource>
JScript does not support generic types and methods.
Type Parameters
- TSource
The type of source.
Parameters
- provider
Type: System.Reactive.Linq.IQbservableProvider
The local Qbservable provider.
- subscribe
Type: System.Linq.Expressions.Expression<Func<IObserver<TSource>, Action>>
The implementation of the resulting queryable observable sequence's subscribe method, returning an action delegate that will be wrapped in an IDisposable.
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 or .