Metodo Observable.FromAsyncPattern<TResult> (Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>)
Spazio dei nomi: Microsoft.Phone.Reactive
Assembly: Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)
Sintassi
'Dichiarazione
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>>
Parametri di tipo
- TResult
Parametri
- begin
Tipo: System.Func<AsyncCallback, Object, IAsyncResult>
- end
Tipo: System.Func<IAsyncResult, TResult>
Valore restituito
Tipo: System.Func<IObservable<TResult>>
Informazioni sulla versione
.NET per applicazioni Windows Phone
Supportato in: Windows Phone 8, Silverlight 8.1
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.