Bagikan melalui


BarcodeScannerEnableScannerRequest Kelas

Definisi

Mewakili permintaan untuk mengaktifkan pemindai kode batang.

public ref class BarcodeScannerEnableScannerRequest sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BarcodeScannerEnableScannerRequest final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class BarcodeScannerEnableScannerRequest final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BarcodeScannerEnableScannerRequest
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class BarcodeScannerEnableScannerRequest
Public NotInheritable Class BarcodeScannerEnableScannerRequest
Warisan
Object Platform::Object IInspectable BarcodeScannerEnableScannerRequest
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10, version 1803 (diperkenalkan dalam 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v6.0)

Keterangan

Sistem menghasilkan instans kelas ini dan mengaturnya sebagai properti di argumen BarcodeScannerEnableScannerRequestEventArgs dari peristiwa EnableScannerRequested.

Riwayat versi

Versi Windows Versi SDK Nilai ditambahkan
1809 17763 ReportFailedAsync(Int32)
1809 17763 ReportFailedAsync(Int32,String)

Metode

ReportCompletedAsync()

Memberi tahu aplikasi klien bahwa permintaan berhasil diproses.

ReportFailedAsync()

Memberi tahu klien bahwa permintaan tidak berhasil diproses.

ReportFailedAsync(Int32, String)

Memberi tahu klien bahwa permintaan tidak berhasil diproses.

ReportFailedAsync(Int32)

Memberi tahu klien bahwa permintaan tidak berhasil diproses.

Berlaku untuk