DkmInspectionContext.EvaluateExpressionOnThreads 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.
Bind the input expression and evaluate it. Then format the resulting value for display in the debugger. This is used for data tips, the watch windows, the immediate window, etc.
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).
public:
void EvaluateExpressionOnThreads(Microsoft::VisualStudio::Debugger::DkmWorkList ^ WorkList, System::Collections::ObjectModel::ReadOnlyCollection<System::UInt64> ^ Threads, Microsoft::VisualStudio::Debugger::CallStack::DkmStackWalkFrame ^ StackFrame, Microsoft::VisualStudio::Debugger::Evaluation::DkmLanguageExpression ^ Expression, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::Evaluation::Group::DkmEvaluateExpressionOnThreadsAsyncResult> ^ CompletionRoutine);
public void EvaluateExpressionOnThreads (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, System.Collections.ObjectModel.ReadOnlyCollection<ulong> Threads, Microsoft.VisualStudio.Debugger.CallStack.DkmStackWalkFrame StackFrame, Microsoft.VisualStudio.Debugger.Evaluation.DkmLanguageExpression Expression, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Evaluation.Group.DkmEvaluateExpressionOnThreadsAsyncResult> CompletionRoutine);
member this.EvaluateExpressionOnThreads : Microsoft.VisualStudio.Debugger.DkmWorkList * System.Collections.ObjectModel.ReadOnlyCollection<uint64> * Microsoft.VisualStudio.Debugger.CallStack.DkmStackWalkFrame * Microsoft.VisualStudio.Debugger.Evaluation.DkmLanguageExpression * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Evaluation.Group.DkmEvaluateExpressionOnThreadsAsyncResult> -> unit
Public Sub EvaluateExpressionOnThreads (WorkList As DkmWorkList, Threads As ReadOnlyCollection(Of ULong), StackFrame As DkmStackWalkFrame, Expression As DkmLanguageExpression, CompletionRoutine As DkmCompletionRoutine(Of DkmEvaluateExpressionOnThreadsAsyncResult))
Parameters
- WorkList
- DkmWorkList
WorkList to append the new work item to.
- Threads
- ReadOnlyCollection<UInt64>
[In] The compute threads to use when executing the query.
- StackFrame
- DkmStackWalkFrame
[In] Stack frame to match on compute threads.
- Expression
- DkmLanguageExpression
[In] Expression to evaluate.
- CompletionRoutine
- DkmCompletionRoutine<DkmEvaluateExpressionOnThreadsAsyncResult>
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.