共用方式為


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的新參考時,都必須註冊事件控制碼。

適用於

另請參閱