Udostępnij za pośrednictwem


DkmTransportConnection.ShutDownAppPackage Method

Definition

Suspend and then shut down the specified application using the process lifetime management services. Using this followed by a second app launch, developers can test their app's ability to restart from suspended state.

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 ShutDownAppPackage(Microsoft::VisualStudio::Debugger::DkmWorkList ^ WorkList, Microsoft::VisualStudio::Debugger::DefaultPort::DkmAppPackageId ^ AppPackageId, int SessionId, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::DefaultPort::DkmShutDownAppPackageAsyncResult> ^ CompletionRoutine);
public void ShutDownAppPackage (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, Microsoft.VisualStudio.Debugger.DefaultPort.DkmAppPackageId AppPackageId, int SessionId, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DefaultPort.DkmShutDownAppPackageAsyncResult> CompletionRoutine);
member this.ShutDownAppPackage : Microsoft.VisualStudio.Debugger.DkmWorkList * Microsoft.VisualStudio.Debugger.DefaultPort.DkmAppPackageId * int * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DefaultPort.DkmShutDownAppPackageAsyncResult> -> unit
Public Sub ShutDownAppPackage (WorkList As DkmWorkList, AppPackageId As DkmAppPackageId, SessionId As Integer, CompletionRoutine As DkmCompletionRoutine(Of DkmShutDownAppPackageAsyncResult))

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

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