SmartCardReader.CardAdded 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在智能卡读取器中插入智能卡或点击 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)