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