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 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應