Partager via


Observable.FromAsyncPattern<T1>, méthode (Func<T1, 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) ( _
    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>> 

Paramètres de type

  • T1

Paramètres

Valeur de retour

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