Partager via


Observable.FromAsyncPattern<T1, T2>, méthode (Func<T1, T2, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>)

Espace de noms :  Microsoft.Phone.Reactive
Assembly :  Microsoft.Phone.Reactive (dans Microsoft.Phone.Reactive.dll)

Syntaxe

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

Paramètres de type

  • T1
  • T2

Paramètres

Valeur de retour

Type : System.Func<T1, T2, IObservable<Unit>>

Informations de version

.NET pour les applications Windows Phone

Pris en charge dans : Windows Phone 8, Silverlight 8.1

Sécurité .NET Framework

Voir aussi

Référence

Observable Classe

FromAsyncPattern, surcharge

Microsoft.Phone.Reactive, espace de noms