SmartCardReader.CardAdded Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when a smart card is inserted into the smart card reader or tapped on an NFC reader.
// Register
event_token CardAdded(TypedEventHandler<SmartCardReader, CardAddedEventArgs const&> const& handler) const;
// Revoke with event_token
void CardAdded(event_token const* cookie) const;
// Revoke with event_revoker
SmartCardReader::CardAdded_revoker CardAdded(auto_revoke_t, TypedEventHandler<SmartCardReader, CardAddedEventArgs const&> const& handler) const;
public event TypedEventHandler<SmartCardReader,CardAddedEventArgs> CardAdded;
function onCardAdded(eventArgs) { /* Your code */ }
smartCardReader.addEventListener("cardadded", onCardAdded);
smartCardReader.removeEventListener("cardadded", onCardAdded);
- or -
smartCardReader.oncardadded = onCardAdded;
Public Custom Event CardAdded As TypedEventHandler(Of SmartCardReader, CardAddedEventArgs)