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
- begin
Tipo: System.Func<AsyncCallback, Object, IAsyncResult>
- end
Tipo: System.Func<IAsyncResult, TResult>
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
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.