Observable.FromAsyncPattern<TResult> 方法 (Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>)

命名空间:  Microsoft.Phone.Reactive
程序集:  Microsoft.Phone.Reactive(在 Microsoft.Phone.Reactive.dll 中)

语法

声明
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>> 

类型参数

  • TResult

参数

返回值

类型:System.Func<IObservable<TResult>>

版本信息

适用于 Windows Phone 应用的 .NET

受以下版本支持:Windows Phone 8、Silverlight 8.1

.NET Framework 安全性

请参阅

参考

Observable 类

FromAsyncPattern 重载

Microsoft.Phone.Reactive 命名空间