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
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.