Share via


DkmNonDebugProcessSnapshot.OpenAsync Method

Definition

Creates a hidden debug session to inspect the process snapshot taken by DkmTransportConnection.TakeMinimalProcessSnapshot.

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 17 Update 6 (DkmApiVersion.VS17Update6).

public void OpenAsync (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, Guid ManagedEngineId, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DefaultPort.DkmOpenNonDebugProcessSnapshotAsyncResult> CompletionRoutine);
member this.OpenAsync : Microsoft.VisualStudio.Debugger.DkmWorkList * Guid * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.DefaultPort.DkmOpenNonDebugProcessSnapshotAsyncResult> -> unit
Public Sub OpenAsync (WorkList As DkmWorkList, ManagedEngineId As Guid, CompletionRoutine As DkmCompletionRoutine(Of DkmOpenNonDebugProcessSnapshotAsyncResult))

Parameters

WorkList
DkmWorkList

WorkList to append the new work item to.

ManagedEngineId
Guid

[In] The managed debugging engine GUID to be used for debugging this snapshot.

CompletionRoutine
DkmCompletionRoutine<DkmOpenNonDebugProcessSnapshotAsyncResult>

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