Compartilhar via


Método Observable.FromAsyncPattern<TResult> (Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>)

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

Sintaxe

'Declaração
Public Shared Function FromAsyncPattern(Of TResult) ( _
    begin As Func(Of AsyncCallback, Object, IAsyncResult), _
    end As Func(Of IAsyncResult, TResult) _
) As Func(Of IObservable(Of TResult))
public static Func<IObservable<TResult>> FromAsyncPattern<TResult>(
    Func<AsyncCallback, Object, IAsyncResult> begin,
    Func<IAsyncResult, TResult> end
)
public:
generic<typename TResult>
static Func<IObservable<TResult>^>^ FromAsyncPattern(
    Func<AsyncCallback^, Object^, IAsyncResult^>^ begin, 
    Func<IAsyncResult^, TResult>^ end
)
static member FromAsyncPattern : 
        begin:Func<AsyncCallback, Object, IAsyncResult> * 
        end:Func<IAsyncResult, 'TResult> -> Func<IObservable<'TResult>> 

Parâmetros de tipo

  • TResult

Parâmetros

Valor de retorno

Tipo: System.Func<IObservable<TResult>>

Informações sobre versão

.NET para aplicativos do Windows Phone

Com suporte em: Windows Phone 8, Silverlight 8.1

Segurança do .NET Framework

Consulte também

Referência

Observable Classe

Sobrecargas FromAsyncPattern

Namespace Microsoft.Phone.Reactive