Bagikan melalui


ClaimedCashDrawer.Closed Kejadian

Definisi

Peristiwa yang dimunculkan saat ClaimedCashDrawer ditutup.

// Register
event_token Closed(TypedEventHandler<ClaimedCashDrawer, ClaimedCashDrawerClosedEventArgs const&> const& handler) const;

// Revoke with event_token
void Closed(event_token const* cookie) const;

// Revoke with event_revoker
ClaimedCashDrawer::Closed_revoker Closed(auto_revoke_t, TypedEventHandler<ClaimedCashDrawer, ClaimedCashDrawerClosedEventArgs const&> const& handler) const;
public event TypedEventHandler<ClaimedCashDrawer,ClaimedCashDrawerClosedEventArgs> Closed;
function onClosed(eventArgs) { /* Your code */ }
claimedCashDrawer.addEventListener("closed", onClosed);
claimedCashDrawer.removeEventListener("closed", onClosed);
- or -
claimedCashDrawer.onclosed = onClosed;
Public Custom Event Closed As TypedEventHandler(Of ClaimedCashDrawer, ClaimedCashDrawerClosedEventArgs) 

Jenis Acara

Persyaratan Windows

Rangkaian perangkat
Windows 10, version 1809 (diperkenalkan dalam 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v7.0)

Keterangan

Saat aplikasi ditangguhkan, semua objek ClaimedCashDrawer ditutup. Kejadian ini dapat berguna untuk menentukan kapan koneksi cash drawer perlu dibuat ulang.

Berlaku untuk

Lihat juga