共用方式為


BarcodeScannerReport 類別

定義

包含條碼掃描器資料。

public ref class BarcodeScannerReport sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class BarcodeScannerReport 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.IBarcodeScannerReportFactory, 393216, "Windows.Foundation.UniversalApiContract")]
class BarcodeScannerReport 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.IBarcodeScannerReportFactory, 393216, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BarcodeScannerReport final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class BarcodeScannerReport
[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.IBarcodeScannerReportFactory), 393216, "Windows.Foundation.UniversalApiContract")]
public sealed class BarcodeScannerReport
[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.IBarcodeScannerReportFactory), 393216, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BarcodeScannerReport
function BarcodeScannerReport(scanDataType, scanData, scanDataLabel)
Public NotInheritable Class BarcodeScannerReport
繼承
Object Platform::Object IInspectable BarcodeScannerReport
屬性

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 引進)

備註

當您擷取BarcodeScannerDataReceivedEventArgs物件的Report屬性時,就會存取此物件。

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1803 17134 BarcodeScannerReport

建構函式

BarcodeScannerReport(UInt32, IBuffer, IBuffer)

建立 BarcodeScannerReport的實例。

屬性

ScanData

DataReceived 事件取得完整的原始資料。

ScanDataLabel

取得解碼的條碼標籤,其中不包含標頭、總和檢查碼和其他資訊。

ScanDataType

取得解碼的條碼標籤類型。 可能的值定義在 BarcodeSymbologies 類別中。

適用於

另請參閱