CashDrawerEventSource.DrawerOpened 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
打开收银机时发生。
// Register
event_token DrawerOpened(TypedEventHandler<CashDrawerEventSource, CashDrawerOpenedEventArgs const&> const& handler) const;
// Revoke with event_token
void DrawerOpened(event_token const* cookie) const;
// Revoke with event_revoker
CashDrawerEventSource::DrawerOpened_revoker DrawerOpened(auto_revoke_t, TypedEventHandler<CashDrawerEventSource, CashDrawerOpenedEventArgs const&> const& handler) const;
public event TypedEventHandler<CashDrawerEventSource,CashDrawerOpenedEventArgs> DrawerOpened;
function onDrawerOpened(eventArgs) { /* Your code */ }
cashDrawerEventSource.addEventListener("draweropened", onDrawerOpened);
cashDrawerEventSource.removeEventListener("draweropened", onDrawerOpened);
- or -
cashDrawerEventSource.ondraweropened = onDrawerOpened;
Public Custom Event DrawerOpened As TypedEventHandler(Of CashDrawerEventSource, CashDrawerOpenedEventArgs)