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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for