DkmTransportConnection.TerminateAppPackage 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.
Terminate an app package. Used to ensure that all processes associated with a package have stopped.
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.
This API was introduced in Visual Studio 16 Update 9 (DkmApiVersion.VS16Update9).
public void TerminateAppPackage (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, Microsoft.VisualStudio.Debugger.DefaultPort.DkmAppPackageId AppPackageId, int SessionId, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DefaultPort.DkmTerminateAppPackageAsyncResult> CompletionRoutine);
member this.TerminateAppPackage : Microsoft.VisualStudio.Debugger.DkmWorkList * Microsoft.VisualStudio.Debugger.DefaultPort.DkmAppPackageId * int * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DefaultPort.DkmTerminateAppPackageAsyncResult> -> unit
Public Sub TerminateAppPackage (WorkList As DkmWorkList, AppPackageId As DkmAppPackageId, SessionId As Integer, CompletionRoutine As DkmCompletionRoutine(Of DkmTerminateAppPackageAsyncResult))
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<DkmTerminateAppPackageAsyncResult>
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.