Qbservable

Qbservable.FromAsyncPattern<TResult> Method (IQbservableProvider, Expression<Func<AsyncCallback, Object, IAsyncResult>>, Expression<Func<IAsyncResult, TResult>>)

Converts a Begin/End invoke function pair into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function FromAsyncPattern(Of TResult) ( _
    provider As IQbservableProvider, _
    begin As Expression(Of Func(Of AsyncCallback, Object, IAsyncResult)), _
    end As Expression(Of Func(Of IAsyncResult, TResult)) _
) As Func(Of IQbservable(Of TResult))
'Usage
Dim provider As IQbservableProvider
Dim begin As Expression(Of Func(Of AsyncCallback, Object, IAsyncResult))
Dim end As Expression(Of Func(Of IAsyncResult, TResult))
Dim returnValue As Func(Of IQbservable(Of TResult))

returnValue = provider.FromAsyncPattern(begin, _
    end)
public static Func<IQbservable<TResult>> FromAsyncPattern<TResult>(
    this IQbservableProvider provider,
    Expression<Func<AsyncCallback, Object, IAsyncResult>> begin,
    Expression<Func<IAsyncResult, TResult>> end
)
[ExtensionAttribute]
public:
generic<typename TResult>
static Func<IQbservable<TResult>^>^ FromAsyncPattern(
    IQbservableProvider^ provider, 
    Expression<Func<AsyncCallback^, Object^, IAsyncResult^>^>^ begin, 
    Expression<Func<IAsyncResult^, TResult>^>^ end
)
static member FromAsyncPattern : 
        provider:IQbservableProvider * 
        begin:Expression<Func<AsyncCallback, Object, IAsyncResult>> * 
        end:Expression<Func<IAsyncResult, 'TResult>> -> Func<IQbservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<IQbservable<TResult>>
A Begin/End invoke function pair.

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

FromAsyncPattern Overload

System.Reactive.Linq Namespace