Bagikan melalui


StorageItemMostRecentlyUsedList.ItemRemoved Kejadian

Definisi

Diaktifkan saat item penyimpanan dihapus dari daftar yang terakhir digunakan (MRU).

// Register
event_token ItemRemoved(TypedEventHandler<StorageItemMostRecentlyUsedList, ItemRemovedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
StorageItemMostRecentlyUsedList::ItemRemoved_revoker ItemRemoved(auto_revoke_t, TypedEventHandler<StorageItemMostRecentlyUsedList, ItemRemovedEventArgs const&> const& handler) const;
public event TypedEventHandler<StorageItemMostRecentlyUsedList,ItemRemovedEventArgs> ItemRemoved;
function onItemRemoved(eventArgs) { /* Your code */ }
storageItemMostRecentlyUsedList.addEventListener("itemremoved", onItemRemoved);
storageItemMostRecentlyUsedList.removeEventListener("itemremoved", onItemRemoved);
- or -
storageItemMostRecentlyUsedList.onitemremoved = onItemRemoved;
Public Custom Event ItemRemoved As TypedEventHandler(Of StorageItemMostRecentlyUsedList, ItemRemovedEventArgs) 

Jenis Acara

Keterangan

Catatan

Jika Anda ingin menanggapi peristiwa ItemRemoved, Anda harus mendaftarkan penanganan peristiwa setiap kali Anda mendapatkan referensi baru ke StorageItemMostRecentlyUsedList.

Berlaku untuk

Lihat juga