DkmStowedExceptionInformation.Create(Int32, UInt32, String, UInt64, UInt32, UInt32, UInt64, DkmStowedExceptionInformation+NestedException) 方法

定義

建立新的 DkmStowedExceptionInformation 物件實例。Create a new DkmStowedExceptionInformation object instance.

此 API 是在 Visual Studio 12 Update 3 中引進 (DkmApiVersion VS12Update3) 。This API was introduced in Visual Studio 12 Update 3 (DkmApiVersion.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。[In] The HRESULT of the original thrown exception.

ThreadId
UInt32

在擲回例外狀況之執行緒的識別碼。[In] The ID of the thread that the exception was thrown on. 這只是識別碼而不是 DkmThread,因為執行緒可能會在取得傾印之前結束。This is just an ID and not a DkmThread because the thread may have exited before the dump is taken.

ErrorText
String

[In,Optional]Stowed 例外狀況中的錯誤文字。[In,Optional] The error text from the Stowed Exception. 如果這不是 null,則會是文字 Stowed 例外狀況 (而非二進位) ,而且 ExceptionAddress、StackTraceWordSize、StackTraceWords 和 StackTrace 欄位將會無效。If this is non null, it is a Text Stowed Exception (as opposed to binary), and the ExceptionAddress, StackTraceWordSize, StackTraceWords, and StackTrace fields will be invalid.

ExceptionAddress
UInt64

在例外狀況的位址。[In] The address of the exception.

StackTraceWordSize
UInt32

在StackTrace 成員指向之堆疊追蹤中每個單字的大小(以位元組為單位)。[In] Size, in bytes, of each word in the stack trace that the StackTrace member points to. 若為32位平臺,此值會設為4,64位平臺則設為8。This value is set to 4 for 32-bit platforms and 8 for 64-bit platforms.

StackTraceWords
UInt32

在StackTrace 成員指向之堆疊追蹤中的文字數目。[In] The number of words in the stack trace that the StackTrace member points to. 單字數目等於陣列中的元素數目。The number of words is equal to the number of elements in the array.

StackTrace
UInt64

在包含堆疊追蹤之記憶體區塊的指標。[In] A pointer to a memory block that contains the stack trace.

NestedException
DkmStowedExceptionInformation.NestedException

[In,Optional]Stowed 例外狀況可能包含嵌套例外狀況。[In,Optional] Stowed Exceptions can contain a nested exception. 如果這是非 null,則 Stowed 例外狀況會在 NestedException 中包含其他資訊。If this is non-null, the Stowed exception contains additional information in the NestedException.

傳回

DkmStowedExceptionInformation

擴展此方法呼叫的結果。[Out] Result of this method call.

適用於