Bagikan melalui


BarcodeScannerReport Kelas

Definisi

Berisi data pemindai kode batang.

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
Warisan
Object Platform::Object IInspectable BarcodeScannerReport
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)

Keterangan

Objek ini diakses saat Anda mengambil properti Laporan dari objek BarcodeScannerDataReceivedEventArgs .

Riwayat versi

Versi Windows Versi SDK Nilai ditambahkan
1803 17134 BarcodeScannerReport

Konstruktor

BarcodeScannerReport(UInt32, IBuffer, IBuffer)

Membuat instans BarcodeScannerReport.

Properti

ScanData

Mendapatkan data mentah lengkap dari peristiwa DataReceived .

ScanDataLabel

Mendapatkan label kode batang yang didekodekan, yang tidak menyertakan header, checksum, dan informasi lain-lain.

ScanDataType

Mendapatkan jenis label kode batang yang didekodekan. Nilai yang mungkin ditentukan dalam kelas BarcodeSymbologies .

Berlaku untuk

Lihat juga