Freigeben über


Observable.FromAsyncPattern<T1, T2, T3, T4, TResult-Methode> (Func<T1, T2, T3, T4, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>)

Konvertiert ein Begin/End-Aufruffunktionspaar in eine asynchrone Funktion.

Namespace:System.Reactive.Linq
Versammlung: System.Reaktiv (in System.Reactive.dll)

Syntax

'Declaration
Public Shared Function FromAsyncPattern(Of T1, T2, T3, T4, TResult) ( _
    begin As Func(Of T1, T2, T3, T4, AsyncCallback, Object, IAsyncResult), _
    end As Func(Of IAsyncResult, TResult) _
) As Func(Of T1, T2, T3, T4, IObservable(Of TResult))
'Usage
Dim begin As Func(Of T1, T2, T3, T4, AsyncCallback, Object, IAsyncResult)
Dim end As Func(Of IAsyncResult, TResult)
Dim returnValue As Func(Of T1, T2, T3, T4, IObservable(Of TResult))

returnValue = Observable.FromAsyncPattern(begin, _
    end)
public static Func<T1, T2, T3, T4, IObservable<TResult>> FromAsyncPattern<T1, T2, T3, T4, TResult>(
    Func<T1, T2, T3, T4, AsyncCallback, Object, IAsyncResult> begin,
    Func<IAsyncResult, TResult> end
)
public:
generic<typename T1, typename T2, typename T3, typename T4, typename TResult>
static Func<T1, T2, T3, T4, IObservable<TResult>^>^ FromAsyncPattern(
    Func<T1, T2, T3, T4, AsyncCallback^, Object^, IAsyncResult^>^ begin, 
    Func<IAsyncResult^, TResult>^ end
)
static member FromAsyncPattern : 
        begin:Func<'T1, 'T2, 'T3, 'T4, AsyncCallback, Object, IAsyncResult> * 
        end:Func<IAsyncResult, 'TResult> -> Func<'T1, 'T2, 'T3, 'T4, IObservable<'TResult>> 
JScript does not support generic types and methods.

Typparameter

  • T1
    Der erste Funktionstyp.
  • T2
    Der zweite Funktionstyp.
  • T3
    Der dritte Funktionstyp.
  • T4
    Der vierte Funktionstyp.
  • TResult
    Der Typ des Ergebnisses.

Parameter

Rückgabewert

Typ: System.Func<T1, T2, T3, T4, IObservable<TResult>>
Ein Start/End-Aufruffunktionspaar.

Weitere Informationen

Verweis

Beobachtbare Klasse

FromAsyncPattern-Überladung

System.Reactive.Linq-Namespace