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

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

Syntax

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

Type Parameters

  • T1

Parameters

Return Value

Type: System.Func<T1, 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