Observable.FromAsyncPattern Method (Func<AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>)
Namespace: Microsoft.Phone.Reactive
Assembly: Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)
Syntax
'Declaration
Public Shared Function FromAsyncPattern ( _
begin As Func(Of AsyncCallback, Object, IAsyncResult), _
end As Action(Of IAsyncResult) _
) As Func(Of IObservable(Of Unit))
public static Func<IObservable<Unit>> FromAsyncPattern(
Func<AsyncCallback, Object, IAsyncResult> begin,
Action<IAsyncResult> end
)
public:
static Func<IObservable<Unit>^>^ FromAsyncPattern(
Func<AsyncCallback^, Object^, IAsyncResult^>^ begin,
Action<IAsyncResult^>^ end
)
static member FromAsyncPattern :
begin:Func<AsyncCallback, Object, IAsyncResult> *
end:Action<IAsyncResult> -> Func<IObservable<Unit>>
Parameters
- begin
Type: System.Func<AsyncCallback, Object, IAsyncResult>
- end
Type: System.Action<IAsyncResult>
Return Value
Type: System.Func<IObservable<Unit>>
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.