Share via


Observable.FromAsyncPattern<TResult> Method (Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>)

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

Syntax

'Declaration
Public Shared Function FromAsyncPattern(Of TResult) ( _
    begin As Func(Of AsyncCallback, Object, IAsyncResult), _
    end As Func(Of IAsyncResult, TResult) _
) As Func(Of IObservable(Of TResult))
public static Func<IObservable<TResult>> FromAsyncPattern<TResult>(
    Func<AsyncCallback, Object, IAsyncResult> begin,
    Func<IAsyncResult, TResult> end
)
public:
generic<typename TResult>
static Func<IObservable<TResult>^>^ FromAsyncPattern(
    Func<AsyncCallback^, Object^, IAsyncResult^>^ begin, 
    Func<IAsyncResult^, TResult>^ end
)
static member FromAsyncPattern : 
        begin:Func<AsyncCallback, Object, IAsyncResult> * 
        end:Func<IAsyncResult, 'TResult> -> Func<IObservable<'TResult>> 

Type Parameters

  • TResult

Parameters

Return Value

Type: System.Func<IObservable<TResult>>

Version Information

.NET for Windows Phone apps

Supported in: Windows Phone 8, Silverlight 8.1

.NET Framework Security

See Also

Reference

Observable Class

FromAsyncPattern Overload

Microsoft.Phone.Reactive Namespace