Observable.FromAsyncPattern<TResult-Methode> (Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>)
Konvertiert ein Begin/End-Aufruffunktionspaar in eine asynchrone Funktion.
Namespace:System.Reactive.Linq
Versammlung: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
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))
'Usage
Dim begin As Func(Of AsyncCallback, Object, IAsyncResult)
Dim end As Func(Of IAsyncResult, TResult)
Dim returnValue As Func(Of IObservable(Of TResult))
returnValue = Observable.FromAsyncPattern(begin, _
end)
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>>
JScript does not support generic types and methods.
Typparameter
- TResult
Der Typ des Ergebnisses.
Parameter
- begin
Typ: System.Func<AsyncCallback, Object, IAsyncResult>
Die begin-Invoke-Funktion.
- end
Typ: System.Func<IAsyncResult, TResult>
Die End invoke-Funktion.
Rückgabewert
Typ: System.Func<IObservable<TResult>>
Ein Begin/End-Aufruffunktionspaar.