共用方式為


ClaimedBarcodeScanner.ErrorOccurred 事件

定義

發生于讀取條碼時發生問題。

// 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) 

事件類型

適用於