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