Partager via


ClaimedBarcodeScanner.ErrorOccurred Événement

Définition

Se produit en cas de problème lors de la lecture d’un code-barres.

// Register
event_token ErrorOccurred(TypedEventHandler<ClaimedBarcodeScanner, BarcodeScannerErrorOccurredEventArgs const&> const& handler) const;

// Revoke with event_token
void ErrorOccurred(event_token const* cookie) const;

// Revoke with event_revoker
ClaimedBarcodeScanner::ErrorOccurred_revoker ErrorOccurred(auto_revoke_t, TypedEventHandler<ClaimedBarcodeScanner, BarcodeScannerErrorOccurredEventArgs const&> const& handler) const;
public event TypedEventHandler<ClaimedBarcodeScanner,BarcodeScannerErrorOccurredEventArgs> ErrorOccurred;
function onErrorOccurred(eventArgs) { /* Your code */ }
claimedBarcodeScanner.addEventListener("erroroccurred", onErrorOccurred);
claimedBarcodeScanner.removeEventListener("erroroccurred", onErrorOccurred);
- or -
claimedBarcodeScanner.onerroroccurred = onErrorOccurred;
Public Custom Event ErrorOccurred As TypedEventHandler(Of ClaimedBarcodeScanner, BarcodeScannerErrorOccurredEventArgs) 

Type d'événement

S’applique à