IDkmClrResultProvider.GetItems(DkmEvaluationResultEnumContext, DkmWorkList, Int32, Int32, DkmCompletionRoutine<DkmEvaluationEnumAsyncResult>) 方法

定义

从此枚举上下文中获取 DkmEvaluationResult 项。Obtain DkmEvaluationResult items from this enumeration context. 这用于从计算结果中获取堆栈帧或子成员的局部变量。This is used to obtain local variables of a stack frame or child members from an evaluation result.

public:
 void GetItems(Microsoft::VisualStudio::Debugger::Evaluation::DkmEvaluationResultEnumContext ^ enumContext, Microsoft::VisualStudio::Debugger::DkmWorkList ^ workList, int startIndex, int count, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::Evaluation::DkmEvaluationEnumAsyncResult> ^ completionRoutine);
public void GetItems (Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationResultEnumContext enumContext, Microsoft.VisualStudio.Debugger.DkmWorkList workList, int startIndex, int count, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationEnumAsyncResult> completionRoutine);
abstract member GetItems : Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationResultEnumContext * Microsoft.VisualStudio.Debugger.DkmWorkList * int * int * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationEnumAsyncResult> -> unit
Public Sub GetItems (enumContext As DkmEvaluationResultEnumContext, workList As DkmWorkList, startIndex As Integer, count As Integer, completionRoutine As DkmCompletionRoutine(Of DkmEvaluationEnumAsyncResult))

参数

enumContext
DkmEvaluationResultEnumContext

中用于枚举计算结果的子成员的上下文对象,或用于枚举堆栈帧中的局部变量。[In] Context object used to enumerate child members of an evaluation result, or to enumerate local variables from a stack frame. 这与枚举器在逻辑上类似,只是对元素的访问是基于索引而不是按顺序进行的。This is logically similar to an enumerator, except that access to elements is index-based rather than sequential.

workList
DkmWorkList

当前正在处理的 "当前"。WorkList which is currently being processed. 此值可用于检查取消或追加额外的工作。This value can be used to check for cancelation or to append additional work. 直到此函数返回后,新的工作项才会开始执行。New work items will not begin executing until after this function returns.

startIndex
Int32

中要获取的第一个项的从零开始的索引。[In] The zero-based index of the first item to obtain.

count
Int32

中要尝试并返回的项数。[In] The number of items to try and return. 此值可能大于剩余项的总数,在这种情况下,应返回所有剩余项。This value may be larger than the total number of remaining items, in which case all remaining items should be returned. 如果已请求所有元素,则不应使用非常大或负值,因为数组的大小可能会导致内存不足。Very large or negative values should not be used as arrays can have extremely large sizes which would cause out-of-memory if all elements were requested.

completionRoutine
DkmCompletionRoutine<DkmEvaluationEnumAsyncResult>

请求完成时要触发的例程。Routine to fire when the request is complete. 如果实现从此接口方法返回失败,将隐式触发此错误。This will be implicitly fired if the implementation returns failure from this interface method. 实现必须在所有其他情况下激发此方法。The implementation must fire this method in all other scenarios.

适用于