IDkmManagedTaskServices158.GetTaskDelegateLocationFromHandle 方法

定义

从 ICorDebugHandleValue 获取委托的位置。

public:
 Microsoft::VisualStudio::Debugger::Clr::DkmManagedReturnStackFrame ^ GetTaskDelegateLocationFromHandle(Microsoft::VisualStudio::Debugger::CallStack::DkmAsyncStackWalkContext ^ asyncStackWalkContext, Microsoft::VisualStudio::CorDebugInterop::ICorDebugHandleValue ^ taskHandle, Microsoft::VisualStudio::Debugger::DkmThread ^ thread, Microsoft::VisualStudio::Debugger::Clr::DkmClrAppDomain ^ appDomain);
public Microsoft.VisualStudio.Debugger.Clr.DkmManagedReturnStackFrame GetTaskDelegateLocationFromHandle (Microsoft.VisualStudio.Debugger.CallStack.DkmAsyncStackWalkContext asyncStackWalkContext, Microsoft.VisualStudio.CorDebugInterop.ICorDebugHandleValue taskHandle, Microsoft.VisualStudio.Debugger.DkmThread thread, Microsoft.VisualStudio.Debugger.Clr.DkmClrAppDomain appDomain);
abstract member GetTaskDelegateLocationFromHandle : Microsoft.VisualStudio.Debugger.CallStack.DkmAsyncStackWalkContext * Microsoft.VisualStudio.CorDebugInterop.ICorDebugHandleValue * Microsoft.VisualStudio.Debugger.DkmThread * Microsoft.VisualStudio.Debugger.Clr.DkmClrAppDomain -> Microsoft.VisualStudio.Debugger.Clr.DkmManagedReturnStackFrame
Public Function GetTaskDelegateLocationFromHandle (asyncStackWalkContext As DkmAsyncStackWalkContext, taskHandle As ICorDebugHandleValue, thread As DkmThread, appDomain As DkmClrAppDomain) As DkmManagedReturnStackFrame

参数

asyncStackWalkContext
DkmAsyncStackWalkContext

中提供用于遍历异步返回堆栈和任务创建堆栈的上下文。

taskHandle
ICorDebugHandleValue

中任务的 ICorDebugHandleValue。

thread
DkmThread

中帧应属于的线程。

appDomain
DkmClrAppDomain

中任务的 AppDomain。

返回

DkmManagedReturnStackFrame

[Out,Optional]任务对象本身所确定的任务延续委托。 这可能不同于通过遍历逻辑堆栈获取的委托,这可能更准确。

适用于