StorageItemMostRecentlyUsedList.ItemRemoved 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从最近使用的 (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 的新引用时注册事件句柄。