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
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om