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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de