DkmStowedExceptionInformation.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建新的 DkmStowedExceptionInformation 对象实例。
此 API 是在 Visual Studio 12 Update 3 (VS12Update3) 中引入的。
public:
static Microsoft::VisualStudio::Debugger::Exceptions::DkmStowedExceptionInformation ^ Create(int ResultCode, System::UInt32 ThreadId, System::String ^ ErrorText, System::UInt64 ExceptionAddress, System::UInt32 StackTraceWordSize, System::UInt32 StackTraceWords, System::UInt64 StackTrace, Microsoft::VisualStudio::Debugger::Exceptions::DkmStowedExceptionInformation::NestedException ^ NestedException);
static Microsoft::VisualStudio::Debugger::Exceptions::DkmStowedExceptionInformation Create(int ResultCode, unsigned int ThreadId, std::wstring const & ErrorText, unsigned long ExceptionAddress, unsigned int StackTraceWordSize, unsigned int StackTraceWords, unsigned long StackTrace, Microsoft::VisualStudio::Debugger::Exceptions::DkmStowedExceptionInformation::NestedException const & NestedException);
public static Microsoft.VisualStudio.Debugger.Exceptions.DkmStowedExceptionInformation Create (int ResultCode, uint ThreadId, string ErrorText, ulong ExceptionAddress, uint StackTraceWordSize, uint StackTraceWords, ulong StackTrace, Microsoft.VisualStudio.Debugger.Exceptions.DkmStowedExceptionInformation.NestedException NestedException);
static member Create : int * uint32 * string * uint64 * uint32 * uint32 * uint64 * Microsoft.VisualStudio.Debugger.Exceptions.DkmStowedExceptionInformation.NestedException -> Microsoft.VisualStudio.Debugger.Exceptions.DkmStowedExceptionInformation
Public Shared Function Create (ResultCode As Integer, ThreadId As UInteger, ErrorText As String, ExceptionAddress As ULong, StackTraceWordSize As UInteger, StackTraceWords As UInteger, StackTrace As ULong, NestedException As DkmStowedExceptionInformation.NestedException) As DkmStowedExceptionInformation
参数
- ResultCode
- Int32
中原始引发的异常的 HRESULT。
- ThreadId
- UInt32
中引发异常的线程的 ID。 这只是一个 ID,而不是一个 DkmThread,因为该线程可能会在执行转储之前退出。
- ErrorText
- String
[In,可选]存放异常中的错误文本。 如果此值为非 null,则它是文本存放异常 (与 binary) 不同,ExceptionAddress、StackTraceWordSize、StackTraceWords 和 StackTrace 字段将无效。
- ExceptionAddress
- UInt64
中异常的地址。
- StackTraceWordSize
- UInt32
中StackTrace 成员指向的堆栈跟踪中每个单词的大小(以字节为单位)。 对于32位平台,此值设置为4,对于64位平台,此值设置为8。
- StackTraceWords
- UInt32
中StackTrace 成员指向的堆栈跟踪中的单词数。 字数等于数组中元素的数目。
- StackTrace
- UInt64
中指向包含堆栈跟踪的内存块的指针。
- NestedException
- DkmStowedExceptionInformation.NestedException
[In,可选]存放异常可以包含嵌套的异常。 如果此值为非 null,则存放异常将在 NestedException 中包含附加信息。
返回
弄此方法调用的结果。