TaskHelpers.ToApm 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.
Overloads
ToApm(Task, AsyncCallback, Object) | |
ToApm<TResult>(Task<TResult>, AsyncCallback, Object) |
ToApm(Task, AsyncCallback, Object)
- Source:
- TaskHelpers.cs
- Source:
- TaskHelpers.cs
- Source:
- TaskHelpers.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task ^ ToApm(System::Threading::Tasks::Task ^ task, AsyncCallback ^ callback, System::Object ^ state);
public static System.Threading.Tasks.Task ToApm (this System.Threading.Tasks.Task task, AsyncCallback callback, object state);
static member ToApm : System.Threading.Tasks.Task * AsyncCallback * obj -> System.Threading.Tasks.Task
<Extension()>
Public Function ToApm (task As Task, callback As AsyncCallback, state As Object) As Task
Parameters
- task
- Task
- callback
- AsyncCallback
- state
- Object
Returns
Applies to
ToApm<TResult>(Task<TResult>, AsyncCallback, Object)
- Source:
- TaskHelpers.cs
- Source:
- TaskHelpers.cs
- Source:
- TaskHelpers.cs
public:
generic <typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<TResult> ^ ToApm(System::Threading::Tasks::Task<TResult> ^ task, AsyncCallback ^ callback, System::Object ^ state);
public static System.Threading.Tasks.Task<TResult> ToApm<TResult> (this System.Threading.Tasks.Task<TResult> task, AsyncCallback callback, object state);
static member ToApm : System.Threading.Tasks.Task<'Result> * AsyncCallback * obj -> System.Threading.Tasks.Task<'Result>
<Extension()>
Public Function ToApm(Of TResult) (task As Task(Of TResult), callback As AsyncCallback, state As Object) As Task(Of TResult)
Type Parameters
- TResult
Parameters
- task
- Task<TResult>
- callback
- AsyncCallback
- state
- Object
Returns
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour