BarcodeScannerProviderConnection.EnableScannerRequested Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Déclenché lorsque l’application cliente tente d’activer le scanneur de codes-barres.
// Register
event_token EnableScannerRequested(TypedEventHandler<BarcodeScannerProviderConnection, BarcodeScannerEnableScannerRequestEventArgs const&> const& handler) const;
// Revoke with event_token
void EnableScannerRequested(event_token const* cookie) const;
// Revoke with event_revoker
BarcodeScannerProviderConnection::EnableScannerRequested_revoker EnableScannerRequested(auto_revoke_t, TypedEventHandler<BarcodeScannerProviderConnection, BarcodeScannerEnableScannerRequestEventArgs const&> const& handler) const;
public event TypedEventHandler<BarcodeScannerProviderConnection,BarcodeScannerEnableScannerRequestEventArgs> EnableScannerRequested;
function onEnableScannerRequested(eventArgs) { /* Your code */ }
barcodeScannerProviderConnection.addEventListener("enablescannerrequested", onEnableScannerRequested);
barcodeScannerProviderConnection.removeEventListener("enablescannerrequested", onEnableScannerRequested);
- or -
barcodeScannerProviderConnection.onenablescannerrequested = onEnableScannerRequested;
Public Custom Event EnableScannerRequested As TypedEventHandler(Of BarcodeScannerProviderConnection, BarcodeScannerEnableScannerRequestEventArgs)