Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.27 KB

storagelibrarycontentchangedtrigger_create_1791269264.md

File metadata and controls

35 lines (25 loc) · 1.27 KB
-api-id -api-type
M:Windows.ApplicationModel.Background.StorageLibraryContentChangedTrigger.Create(Windows.Storage.StorageLibrary)
winrt method

Windows.ApplicationModel.Background.StorageLibraryContentChangedTrigger.Create

-description

Creates a trigger that will fire when a file is changed in the specified library.

-parameters

-param storageLibrary

The location that the trigger monitors such as the music library or documents library.

-returns

A trigger that monitors the specified location.

-remarks

For more details on how to use the trigger and a code sample, please see File System Monitoring in Universal Windows Platform Apps

-examples

//Get access to the library that you want to monitor 
StorageLibrary picturesLibrary = await StorageLibrary.GetLibraryAsync(KnownLibraryId.Pictures); 
var trigger = StorageLibraryContentChangedTrigger.Create(picturesLibrary);

-see-also

GetLibraryAsync