Partager via


BarcodeScannerReport Classe

Définition

Contient les données du scanneur de codes-barres.

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
Héritage
Object Platform::Object IInspectable BarcodeScannerReport
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v1.0)

Remarques

Cet objet est accessible lorsque vous récupérez la propriété Report de l’objet BarcodeScannerDataReceivedEventArgs .

Historique des versions

Version de Windows Version du SDK Valeur ajoutée
1803 17134 BarcodeScannerReport

Constructeurs

BarcodeScannerReport(UInt32, IBuffer, IBuffer)

Crée un instance de BarcodeScannerReport.

Propriétés

ScanData

Obtient les données brutes complètes de l’événement DataReceived .

ScanDataLabel

Obtient l’étiquette de code-barres décodée, qui n’inclut pas l’en-tête, la somme de contrôle et d’autres informations diverses.

ScanDataType

Obtient le type d’étiquette de code-barres décodé. Les valeurs possibles sont définies dans la classe BarcodeSymbologies .

S’applique à

Voir aussi