DkmCustomExceptionInformation.Create 方法

定义

创建新的 DkmCustomExceptionInformation 对象实例。

public:
 static Microsoft::VisualStudio::Debugger::CustomRuntimes::DkmCustomExceptionInformation ^ Create(Microsoft::VisualStudio::Debugger::DkmRuntimeInstance ^ RuntimeInstance, Guid ExceptionCategory, Microsoft::VisualStudio::Debugger::DkmThread ^ Thread, Microsoft::VisualStudio::Debugger::DkmInstructionAddress ^ InstructionAddress, System::String ^ Name, System::UInt32 Code, Microsoft::VisualStudio::Debugger::Exceptions::DkmExceptionProcessingStage ProcessingStage, Microsoft::VisualStudio::Debugger::Exceptions::DkmExceptionInformation ^ ImplementationException, System::Collections::ObjectModel::ReadOnlyCollection<System::Byte> ^ AdditionalInformation);
public static Microsoft.VisualStudio.Debugger.CustomRuntimes.DkmCustomExceptionInformation Create (Microsoft.VisualStudio.Debugger.DkmRuntimeInstance RuntimeInstance, Guid ExceptionCategory, Microsoft.VisualStudio.Debugger.DkmThread Thread, Microsoft.VisualStudio.Debugger.DkmInstructionAddress InstructionAddress, string Name, uint Code, Microsoft.VisualStudio.Debugger.Exceptions.DkmExceptionProcessingStage ProcessingStage, Microsoft.VisualStudio.Debugger.Exceptions.DkmExceptionInformation ImplementationException, System.Collections.ObjectModel.ReadOnlyCollection<byte> AdditionalInformation);
static member Create : Microsoft.VisualStudio.Debugger.DkmRuntimeInstance * Guid * Microsoft.VisualStudio.Debugger.DkmThread * Microsoft.VisualStudio.Debugger.DkmInstructionAddress * string * uint32 * Microsoft.VisualStudio.Debugger.Exceptions.DkmExceptionProcessingStage * Microsoft.VisualStudio.Debugger.Exceptions.DkmExceptionInformation * System.Collections.ObjectModel.ReadOnlyCollection<byte> -> Microsoft.VisualStudio.Debugger.CustomRuntimes.DkmCustomExceptionInformation
Public Shared Function Create (RuntimeInstance As DkmRuntimeInstance, ExceptionCategory As Guid, Thread As DkmThread, InstructionAddress As DkmInstructionAddress, Name As String, Code As UInteger, ProcessingStage As DkmExceptionProcessingStage, ImplementationException As DkmExceptionInformation, AdditionalInformation As ReadOnlyCollection(Of Byte)) As DkmCustomExceptionInformation

参数

RuntimeInstance
DkmRuntimeInstance

中DkmRuntimeInstance 类表示加载到 DkmProcess 中的执行环境,其中包含要调试的代码。

ExceptionCategory
Guid

中指示异常的类型。

Thread
DkmThread

中DkmThread 表示在目标进程中运行的线程。

InstructionAddress
DkmInstructionAddress

[In,可选]发生异常的地址。 这对于 c + + 和 Win32 异常将始终存在。 CLR 异常或 Mda 可能缺少此项,因为它们可能源自运行时内部。

Name
String

[In,可选]异常的名称。 对于 c + + 或 CLR 异常,这是类型名。 对于通过代码识别异常的异常类别,此值将为 null (ex: Win32) 。

Code
UInt32

[In] 用于异常的32位整数代码。 对于 Win32 异常,这是传递给 RaiseException 的代码, (例如: EXCEPTION_ACCESS_VIOLATION) 。 对于通过字符串标识异常的异常类别,此值为零 (ex: CLR) 。

ProcessingStage
DkmExceptionProcessingStage

中调试器将在异常处理中的不同阶段接收来自目标进程的通知 (例如:引发了异常,异常未处理) 。 此枚举指示通知的阶段 () 。

ImplementationException
DkmExceptionInformation

[In,可选]用于实现更高级别的异常的基础异常的相关信息。 例如,CLR 和 c + + 异常可基于 Win32 异常来实现。 这样,就可以存储 CLR 或 c + + 异常的 DkmWin32ExceptionInformation。

AdditionalInformation
ReadOnlyCollection<Byte>

[In,可选]有关此自定义异常的其他数据。 格式由自定义异常类型定义。

返回

DkmCustomExceptionInformation

弄此方法调用的结果。

适用于