Observable.FromAsyncPattern<TResult> Method (Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>)
Namespace: Microsoft.Phone.Reactive
Assembly: Microsoft.Phone.Reactive (in Microsoft.Phone.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))
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>>
Type Parameters
- TResult
Parameters
- begin
Type: System.Func<AsyncCallback, Object, IAsyncResult>
- end
Type: System.Func<IAsyncResult, TResult>
Return Value
Type: System.Func<IObservable<TResult>>
Version Information
.NET for Windows Phone apps
Supported in: Windows Phone 8, Silverlight 8.1
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.