Share via


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

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

Syntax

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

Parameters

Return Value

Type: System.Func<IObservable<Unit>>

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