共用方式為


UnifiedPosErrorData 建構函式

定義

建立 UnifiedPosErrorData 的實例。

public:
 UnifiedPosErrorData(Platform::String ^ message, UnifiedPosErrorSeverity severity, UnifiedPosErrorReason reason, unsigned int extendedReason);
 UnifiedPosErrorData(winrt::hstring const& message, UnifiedPosErrorSeverity const& severity, UnifiedPosErrorReason const& reason, uint32_t const& extendedReason);
public UnifiedPosErrorData(string message, UnifiedPosErrorSeverity severity, UnifiedPosErrorReason reason, uint extendedReason);
function UnifiedPosErrorData(message, severity, reason, extendedReason)
Public Sub New (message As String, severity As UnifiedPosErrorSeverity, reason As UnifiedPosErrorReason, extendedReason As UInteger)

參數

message
String

Platform::String

winrt::hstring

錯誤訊息。

severity
UnifiedPosErrorSeverity

錯誤嚴重性。

reason
UnifiedPosErrorReason

錯誤的原因。

extendedReason
UInt32

unsigned int

uint32_t

廠商特定的錯誤資訊。

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

適用於