Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.29 KB

storageitemqueryresult_contentschanged.md

File metadata and controls

22 lines (15 loc) · 1.29 KB
-api-id -api-type
E:Windows.Storage.Search.StorageItemQueryResult.ContentsChanged
winrt event

Windows.Storage.Search.StorageItemQueryResult.ContentsChanged

-description

Fires when an item is added to, deleted from, or modified in the folder being queried. This event only fires after GetItemsAsync has been called at least once.

-remarks

If you register a handler for this event, keep that handler registered while you suspend your app (in response to oncheckpoint or Suspending). Your app will not receive ContentsChanged events while it is suspended and when your app resumes it will receive a single event that aggregates all of the changes if any occurred.

Additionally, keep in mind that registering and removing event handlers are synchronous operations and might cause your app to stop responding briefly if you execute them on your app's UI thread. Wherever possible, use a thread other than your app's UI thread to register and unregister these event handlers.

-examples

-see-also