DkmTransportConnection.SuspendAppPackage Method

Definition

Performs a simulated process lifetime management-based suspend on the specified application. This is used by developers to test their app's suspend 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 SuspendAppPackage(Microsoft::VisualStudio::Debugger::DkmWorkList ^ WorkList, Microsoft::VisualStudio::Debugger::DefaultPort::DkmAppPackageId ^ AppPackageId, int SessionId, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::DefaultPort::DkmSuspendAppPackageAsyncResult> ^ CompletionRoutine);
public void SuspendAppPackage (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, Microsoft.VisualStudio.Debugger.DefaultPort.DkmAppPackageId AppPackageId, int SessionId, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DefaultPort.DkmSuspendAppPackageAsyncResult> CompletionRoutine);
member this.SuspendAppPackage : Microsoft.VisualStudio.Debugger.DkmWorkList * Microsoft.VisualStudio.Debugger.DefaultPort.DkmAppPackageId * int * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DefaultPort.DkmSuspendAppPackageAsyncResult> -> unit
Public Sub SuspendAppPackage (WorkList As DkmWorkList, AppPackageId As DkmAppPackageId, SessionId As Integer, CompletionRoutine As DkmCompletionRoutine(Of DkmSuspendAppPackageAsyncResult))

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<DkmSuspendAppPackageAsyncResult>

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