UnifiedPosErrorData 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供错误信息。
public ref class UnifiedPosErrorData sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UnifiedPosErrorData final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.PointOfService.IUnifiedPosErrorDataFactory, 393216, "Windows.Foundation.UniversalApiContract")]
class UnifiedPosErrorData final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.PointOfService.IUnifiedPosErrorDataFactory, 393216, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UnifiedPosErrorData final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UnifiedPosErrorData
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.PointOfService.IUnifiedPosErrorDataFactory), 393216, "Windows.Foundation.UniversalApiContract")]
public sealed class UnifiedPosErrorData
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.PointOfService.IUnifiedPosErrorDataFactory), 393216, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class UnifiedPosErrorData
function UnifiedPosErrorData(message, severity, reason, extendedReason)
Public NotInheritable Class UnifiedPosErrorData
- 继承
- 属性
Windows 要求
设备系列 |
Windows 10 (在 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
注解
检索 BarcodeScannerErrorOccurredEventArgs 或 MagneticStripeReaderErrorOccurredEventArgs 对象的 ErrorData 属性时,将访问此对象。
版本历史记录
Windows 版本 | SDK 版本 | 增值 |
---|---|---|
1803 | 17134 | UnifiedPosErrorData |
构造函数
UnifiedPosErrorData(String, UnifiedPosErrorSeverity, UnifiedPosErrorReason, UInt32) |
为 UnifiedPosErrorData 创建实例。 |
属性
ExtendedReason |
获取特定于供应商的错误信息。 |
Message |
获取错误消息。 |
Reason |
获取错误的原因。 |
Severity |
获取错误严重性。 |