次の方法で共有


DkmTaskProviderOperationContext.GetTasksAsync Method

Definition

Enumerates the current set of tasks running in the target process.

This method will append a new work item to the specified work list, and return once the work item has been appended. The actual processing of the work item is asynchronous. The caller will be notified that the request is complete through the completion routine.

Location constraint: API must be called from an IDE component (component level > 100,000).

This API was introduced in Visual Studio 16 Update 5 (DkmApiVersion.VS16Update5).

public:
 void GetTasksAsync(Microsoft::VisualStudio::Debugger::DkmWorkList ^ WorkList, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::ParallelTasks::DkmGetTasksAsyncResult> ^ CompletionRoutine);
public void GetTasksAsync (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.ParallelTasks.DkmGetTasksAsyncResult> CompletionRoutine);
member this.GetTasksAsync : Microsoft.VisualStudio.Debugger.DkmWorkList * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.ParallelTasks.DkmGetTasksAsyncResult> -> unit
Public Sub GetTasksAsync (WorkList As DkmWorkList, CompletionRoutine As DkmCompletionRoutine(Of DkmGetTasksAsyncResult))

Parameters

WorkList
DkmWorkList

WorkList to append the new work item to.

CompletionRoutine
DkmCompletionRoutine<DkmGetTasksAsyncResult>

Routine to fire when the request is complete. If the request is successfully appended to the work list, this will always fire (including when the operation is canceled). This will never fire if appending the work item fails.

Applies to