StorageItemMostRecentlyUsedList.ItemRemoved 事件

定义

从最近使用的 (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) 

事件类型

注解

注意

如果要响应 ItemRemoved 事件,则必须在每次获取对 StorageItemMostRecentlyUsedList 的新引用时注册事件句柄。

适用于

另请参阅