DkmTransportConnection.EnumerateBackgroundTasks Method

Definition

Enumerates the existing background tasks. This is used by developers to test their app's enum handler.

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.

public:
 void EnumerateBackgroundTasks(Microsoft::VisualStudio::Debugger::DkmWorkList ^ WorkList, Microsoft::VisualStudio::Debugger::DefaultPort::DkmAppPackageId ^ AppPackageId, int SessionId, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::DefaultPort::DkmEnumerateBackgroundTasksAsyncResult> ^ CompletionRoutine);
public void EnumerateBackgroundTasks (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, Microsoft.VisualStudio.Debugger.DefaultPort.DkmAppPackageId AppPackageId, int SessionId, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DefaultPort.DkmEnumerateBackgroundTasksAsyncResult> CompletionRoutine);
member this.EnumerateBackgroundTasks : Microsoft.VisualStudio.Debugger.DkmWorkList * Microsoft.VisualStudio.Debugger.DefaultPort.DkmAppPackageId * int * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DefaultPort.DkmEnumerateBackgroundTasksAsyncResult> -> unit
Public Sub EnumerateBackgroundTasks (WorkList As DkmWorkList, AppPackageId As DkmAppPackageId, SessionId As Integer, CompletionRoutine As DkmCompletionRoutine(Of DkmEnumerateBackgroundTasksAsyncResult))

Parameters

WorkList
DkmWorkList

WorkList to append the new work item to.

AppPackageId
DkmAppPackageId

[In] Identifies a Windows Store app package or Windows Phone app package.

SessionId
Int32

[In] The id of the session where the application is running.

CompletionRoutine
DkmCompletionRoutine<DkmEnumerateBackgroundTasksAsyncResult>

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