DkmCppWinRTExceptionInformation.Create 方法

定义

重载

Create(String, String, String, String, Int32)

创建新的 DkmCppWinRTExceptionInformation 对象实例。

Create(String, String, String, String, Int32, UInt64, ReadOnlyCollection<DkmInstructionAddress>)

创建新的 DkmCppWinRTExceptionInformation 对象实例。

         此 API 是在 Visual Studio 12 RTM (VS12RTM) 中引入的。

Create(String, String, String, String, Int32)

创建新的 DkmCppWinRTExceptionInformation 对象实例。

public:
 static Microsoft::VisualStudio::Debugger::Native::DkmCppWinRTExceptionInformation ^ Create(System::String ^ Description, System::String ^ RestrictedDescription, System::String ^ RestrictedReference, System::String ^ RestrictedCapabilitySid, int ExceptionHR);
public:
 static Microsoft::VisualStudio::Debugger::Native::DkmCppWinRTExceptionInformation ^ Create(Platform::String ^ Description, Platform::String ^ RestrictedDescription, Platform::String ^ RestrictedReference, Platform::String ^ RestrictedCapabilitySid, int ExceptionHR);
 static Microsoft::VisualStudio::Debugger::Native::DkmCppWinRTExceptionInformation Create(std::wstring const & Description, std::wstring const & RestrictedDescription, std::wstring const & RestrictedReference, std::wstring const & RestrictedCapabilitySid, int ExceptionHR);
public static Microsoft.VisualStudio.Debugger.Native.DkmCppWinRTExceptionInformation Create (string Description, string RestrictedDescription, string RestrictedReference, string RestrictedCapabilitySid, int ExceptionHR);
static member Create : string * string * string * string * int -> Microsoft.VisualStudio.Debugger.Native.DkmCppWinRTExceptionInformation
Public Shared Function Create (Description As String, RestrictedDescription As String, RestrictedReference As String, RestrictedCapabilitySid As String, ExceptionHR As Integer) As DkmCppWinRTExceptionInformation

参数

Description
String

中异常的基本非限制说明。

RestrictedDescription
String

中对异常的限制说明。

RestrictedReference
String

中引用字符串,用作在缺少 RestrictedReference 时查找受限信息的键。

RestrictedCapabilitySid
String

中如果此原因引发了此异常,则为缺少功能的安全标识符。

ExceptionHR
Int32

中导致引发此异常的失败 HRESULT 值。

返回

DkmCppWinRTExceptionInformation

弄此方法调用的结果。

适用于

Create(String, String, String, String, Int32, UInt64, ReadOnlyCollection<DkmInstructionAddress>)

创建新的 DkmCppWinRTExceptionInformation 对象实例。

         此 API 是在 Visual Studio 12 RTM (VS12RTM) 中引入的。
public:
 static Microsoft::VisualStudio::Debugger::Native::DkmCppWinRTExceptionInformation ^ Create(System::String ^ Description, System::String ^ RestrictedDescription, System::String ^ RestrictedReference, System::String ^ RestrictedCapabilitySid, int ExceptionHR, System::UInt64 ErrorInfoAddress, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Debugger::DkmInstructionAddress ^> ^ CapturedStack);
public static Microsoft.VisualStudio.Debugger.Native.DkmCppWinRTExceptionInformation Create (string Description, string RestrictedDescription, string RestrictedReference, string RestrictedCapabilitySid, int ExceptionHR, ulong ErrorInfoAddress, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.DkmInstructionAddress> CapturedStack);
static member Create : string * string * string * string * int * uint64 * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Debugger.DkmInstructionAddress> -> Microsoft.VisualStudio.Debugger.Native.DkmCppWinRTExceptionInformation
Public Shared Function Create (Description As String, RestrictedDescription As String, RestrictedReference As String, RestrictedCapabilitySid As String, ExceptionHR As Integer, ErrorInfoAddress As ULong, CapturedStack As ReadOnlyCollection(Of DkmInstructionAddress)) As DkmCppWinRTExceptionInformation

参数

Description
String

中异常的基本非限制说明。

RestrictedDescription
String

中对异常的限制说明。

RestrictedReference
String

中引用字符串,用作在缺少 RestrictedReference 时查找受限信息的键。

RestrictedCapabilitySid
String

中如果此原因引发了此异常,则为缺少功能的安全标识符。

ExceptionHR
Int32

中导致引发此异常的失败 HRESULT 值。

ErrorInfoAddress
UInt64

中与异常关联的 IErrorInfo 对象的地址。 用于检索捕获的堆栈。

CapturedStack
ReadOnlyCollection<DkmInstructionAddress>

[In,可选]如果异常包含捕获的堆栈跟踪,则指定捕获帧的地址。

返回

DkmCppWinRTExceptionInformation

弄此方法调用的结果。

适用于