Share via


SmartCardReader.CardAdded Event

Definition

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) 

Event Type

Applies to

See also