CashDrawer.StatusUpdated 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示抽屉的电源可用性状态已更改。
// Register
event_token StatusUpdated(TypedEventHandler<CashDrawer, CashDrawerStatusUpdatedEventArgs const&> const& handler) const;
// Revoke with event_token
void StatusUpdated(event_token const* cookie) const;
// Revoke with event_revoker
CashDrawer::StatusUpdated_revoker StatusUpdated(auto_revoke_t, TypedEventHandler<CashDrawer, CashDrawerStatusUpdatedEventArgs const&> const& handler) const;
public event TypedEventHandler<CashDrawer,CashDrawerStatusUpdatedEventArgs> StatusUpdated;
function onStatusUpdated(eventArgs) { /* Your code */ }
cashDrawer.addEventListener("statusupdated", onStatusUpdated);
cashDrawer.removeEventListener("statusupdated", onStatusUpdated);
- or -
cashDrawer.onstatusupdated = onStatusUpdated;
Public Custom Event StatusUpdated As TypedEventHandler(Of CashDrawer, CashDrawerStatusUpdatedEventArgs)