Observable.FromAsyncPattern<TResult> Yöntemi (Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>)
Başlangıç/Bitiş çağırma işlev çiftlerini zaman uyumsuz bir işleve dönüştürür.
Ad Alanı:System.Reactive.Linq
Derleme: System.Reactive (System.Reactive.dll içinde)
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.
Tür Parametreleri
- Tresult
Sonucun türü.
Parametreler
- başla
Tür: System.Func<AsyncCallback, Object, IAsyncResult>
begin invoke işlevi.
- end
Tür: System.Func<IAsyncResult, TResult>
end invoke işlevi.
Dönüş Değeri
Tür: System.Func<IObservable<TResult>>
Başlangıç/Bitiş çağrısı işlev çifti.