Partager via


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

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, TResult) ( _
    begin As Func(Of T1, T2, AsyncCallback, Object, IAsyncResult), _
    end As Func(Of IAsyncResult, TResult) _
) As Func(Of T1, T2, IObservable(Of TResult))
public static Func<T1, T2, IObservable<TResult>> FromAsyncPattern<T1, T2, TResult>(
    Func<T1, T2, AsyncCallback, Object, IAsyncResult> begin,
    Func<IAsyncResult, TResult> end
)
public:
generic<typename T1, typename T2, typename TResult>
static Func<T1, T2, IObservable<TResult>^>^ FromAsyncPattern(
    Func<T1, T2, AsyncCallback^, Object^, IAsyncResult^>^ begin, 
    Func<IAsyncResult^, TResult>^ end
)
static member FromAsyncPattern : 
        begin:Func<'T1, 'T2, AsyncCallback, Object, IAsyncResult> * 
        end:Func<IAsyncResult, 'TResult> -> Func<'T1, 'T2, IObservable<'TResult>> 

Paramètres de type

  • T1
  • T2
  • TResult

Paramètres

Valeur de retour

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

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