共用方式為


ClaimedBarcodeScanner.TriggerPressed 事件

定義

在掃描工作期間按下條碼掃描器觸發程式或按鈕時發生。

// Register
event_token TriggerPressed(EventHandler<ClaimedBarcodeScanner> const& handler) const;

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

// Revoke with event_revoker
ClaimedBarcodeScanner::TriggerPressed_revoker TriggerPressed(auto_revoke_t, EventHandler<ClaimedBarcodeScanner> const& handler) const;
public event System.EventHandler<ClaimedBarcodeScanner> TriggerPressed;
function onTriggerPressed(eventArgs) { /* Your code */ }
claimedBarcodeScanner.addEventListener("triggerpressed", onTriggerPressed);
claimedBarcodeScanner.removeEventListener("triggerpressed", onTriggerPressed);
- or -
claimedBarcodeScanner.ontriggerpressed = onTriggerPressed;
Public Custom Event TriggerPressed As EventHandler(Of ClaimedBarcodeScanner) 

事件類型

適用於