Share via


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

Spazio dei nomi:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

Sintassi

'Dichiarazione
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>> 

Parametri di tipo

  • T1

Parametri

Valore restituito

Tipo: System.Func<T1, IObservable<Unit>>

Informazioni sulla versione

.NET per applicazioni Windows Phone

Supportato in: Windows Phone 8, Silverlight 8.1

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Observable Classe

Overload FromAsyncPattern

Spazio dei nomi Microsoft.Phone.Reactive