TaskHelpers.FromAsync<TIn,TOut1,TOut2> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
generic <typename TIn, typename TOut1, typename TOut2>
static System::Threading::Tasks::Task<ValueTuple<TOut1, TOut2>> ^ FromAsync(Func<TIn, AsyncCallback ^, System::Object ^, IAsyncResult ^> ^ beginDelegate, System::Runtime::TaskHelpers::EndWithOutDelegate<TOut2, TOut1> ^ endDelegate, TIn arg1, System::Object ^ state);
public static System.Threading.Tasks.Task<(TOut1, TOut2)> FromAsync<TIn,TOut1,TOut2> (Func<TIn,AsyncCallback,object,IAsyncResult> beginDelegate, System.Runtime.TaskHelpers.EndWithOutDelegate<TOut2,TOut1> endDelegate, TIn arg1, object state);
static member FromAsync : Func<'In, AsyncCallback, obj, IAsyncResult> * System.Runtime.TaskHelpers.EndWithOutDelegate<'TOut2, 'TOut1> * 'In * obj -> System.Threading.Tasks.Task<ValueTuple<'TOut1, 'TOut2>>
Public Function FromAsync(Of TIn, TOut1, TOut2) (beginDelegate As Func(Of TIn, AsyncCallback, Object, IAsyncResult), endDelegate As TaskHelpers.EndWithOutDelegate(Of TOut2, TOut1), arg1 As TIn, state As Object) As Task(Of ValueTuple(Of TOut1, TOut2))
Type Parameters
- TIn
- TOut1
- TOut2
Parameters
- beginDelegate
- Func<TIn,AsyncCallback,Object,IAsyncResult>
- endDelegate
- TaskHelpers.EndWithOutDelegate<TOut2,TOut1>
- arg1
- TIn
- state
- Object
Returns
Task<ValueTuple<TOut1,TOut2>>
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈