Observable.FromAsyncPattern<T1, T2, TResult> 方法 (Func<T1, T2, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TResult>)
命名空间: Microsoft.Phone.Reactive
程序集: Microsoft.Phone.Reactive(在 Microsoft.Phone.Reactive.dll 中)
语法
声明
Public Shared Function FromAsyncPattern(Of T1, T2, TResult) ( _
begin As Func(Of T1, T2, AsyncCallback, Object, IAsyncResult), _
end As Func(Of IAsyncResult, TResult) _
) As Func(Of T1, T2, IObservable(Of TResult))
public static Func<T1, T2, IObservable<TResult>> FromAsyncPattern<T1, T2, TResult>(
Func<T1, T2, AsyncCallback, Object, IAsyncResult> begin,
Func<IAsyncResult, TResult> end
)
public:
generic<typename T1, typename T2, typename TResult>
static Func<T1, T2, IObservable<TResult>^>^ FromAsyncPattern(
Func<T1, T2, AsyncCallback^, Object^, IAsyncResult^>^ begin,
Func<IAsyncResult^, TResult>^ end
)
static member FromAsyncPattern :
begin:Func<'T1, 'T2, AsyncCallback, Object, IAsyncResult> *
end:Func<IAsyncResult, 'TResult> -> Func<'T1, 'T2, IObservable<'TResult>>
类型参数
- T1
- T2
- TResult
参数
- begin
类型:System.Func<T1, T2, AsyncCallback, Object, IAsyncResult>
- end
类型:System.Func<IAsyncResult, TResult>
返回值
类型:System.Func<T1, T2, IObservable<TResult>>
版本信息
适用于 Windows Phone 应用的 .NET
受以下版本支持:Windows Phone 8、Silverlight 8.1
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。