StorageLibraryContentChangedTrigger Class

Definition

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

public ref class StorageLibraryContentChangedTrigger sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Static(Windows.ApplicationModel.Background.IStorageLibraryContentChangedTriggerStatics, 65536, Windows.Foundation.UniversalApiContract)]
class StorageLibraryContentChangedTrigger sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Static(Windows.ApplicationModel.Background.IStorageLibraryContentChangedTriggerStatics, 65536, "Windows.Foundation.UniversalApiContract")]
class StorageLibraryContentChangedTrigger sealed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Static(typeof(Windows.ApplicationModel.Background.IStorageLibraryContentChangedTriggerStatics), 65536, typeof(Windows.Foundation.UniversalApiContract))]
public sealed class StorageLibraryContentChangedTrigger
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Static(typeof(Windows.ApplicationModel.Background.IStorageLibraryContentChangedTriggerStatics), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class StorageLibraryContentChangedTrigger
Public NotInheritable Class StorageLibraryContentChangedTrigger
Inheritance
StorageLibraryContentChangedTrigger
Attributes
Implements

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Once you create a trigger, register it with a background task

Methods

Create(StorageLibrary)

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

CreateFromLibraries(IEnumerable<StorageLibrary>)

Creates a trigger that will fire when a file is changed in any of the specified libraries.

Applies to

See also