SmartCardReader.CardAdded 事件

定义

在智能卡读取器中插入智能卡或点击 NFC 阅读器时发生。

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

事件类型

适用于

另请参阅