BarcodeScannerReport Class

Definition

Contains the barcode scanner data.

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
Inheritance
Object Platform::Object IInspectable BarcodeScannerReport
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

This object is accessed when you retrieve the Report property of the BarcodeScannerDataReceivedEventArgs object.

Version history

Windows version SDK version Value added
1803 17134 BarcodeScannerReport

Constructors

BarcodeScannerReport(UInt32, IBuffer, IBuffer)

Creates an instance of BarcodeScannerReport.

Properties

ScanData

Gets the full raw data from the DataReceived event.

ScanDataLabel

Gets the decoded barcode label, which does not include the header, checksum, and other miscellaneous information.

ScanDataType

Gets the decoded barcode label type. Possible values are defined in the BarcodeSymbologies class.

Applies to

See also