DkmGetUserCodeSourcePositionCallbackAsyncResult.CreateErrorResult(Exception) 方法

定义

创建一个新的结果结构,用于保存对 DkmInstructionSymbol 的调用失败的错误。 GetUserCodeSourcePositionCallback。Creates a new result structure to hold the error from a failed call to DkmInstructionSymbol.GetUserCodeSourcePositionCallback.

public:
 static Microsoft::VisualStudio::Debugger::Symbols::DkmGetUserCodeSourcePositionCallbackAsyncResult CreateErrorResult(Exception ^ exception);
public static Microsoft.VisualStudio.Debugger.Symbols.DkmGetUserCodeSourcePositionCallbackAsyncResult CreateErrorResult (Exception exception);
static member CreateErrorResult : Exception -> Microsoft.VisualStudio.Debugger.Symbols.DkmGetUserCodeSourcePositionCallbackAsyncResult
Public Shared Function CreateErrorResult (exception As Exception) As DkmGetUserCodeSourcePositionCallbackAsyncResult

参数

exception
Exception

[In] 包含错误的异常对象[In] exception object containing the error

返回

DkmGetUserCodeSourcePositionCallbackAsyncResult

返回 DkmGetUserCodeSourcePositionCallbackAsyncResultReturns DkmGetUserCodeSourcePositionCallbackAsyncResult.

适用于