CachedFileUpdaterTriggerDetails CachedFileUpdaterTriggerDetails CachedFileUpdaterTriggerDetails CachedFileUpdaterTriggerDetails Class

Definition

Provides details about the cached file operation that invoked the trigger.

public sealed class CachedFileUpdaterTriggerDetailspublic sealed class CachedFileUpdaterTriggerDetailsPublic NotInheritable Class CachedFileUpdaterTriggerDetailspublic sealed class CachedFileUpdaterTriggerDetails
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Note

Obtain an instance of this class from an object that implements TriggerDetails

Properties

CanRequestUserInput CanRequestUserInput CanRequestUserInput CanRequestUserInput

Gets whether the system can display UI allowing the user to launch provider app in response to the cached file updater trigger.

public bool CanRequestUserInput { get; }public bool CanRequestUserInput { get; }Public ReadOnly Property CanRequestUserInput As boolpublic bool CanRequestUserInput { get; }
Value
bool bool bool bool

Whether the system can display UI allowing the user to launch provider app in response to the cached file updater trigger.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The Cached File Updater pattern allows the provider app to specify that user input is needed to complete the cached file update by setting the Status property of the associated FileUpdateRequest to UserInputNeededMessage. It is possible that the system may not be able to show UI to the user during the background task, if the app that updated the file is not currently running in the foreground, for example. In this case, CanRequestUserInput will be false. So, you should check this value before requesting for the system to show UI. Setting the FileUpdateRequest status to UserInputNeededMessage will throw an exception if CanRequestUserInput is false.

UpdateRequest UpdateRequest UpdateRequest UpdateRequest

Gets the FileUpdateRequest object associated with the cached file update.

public FileUpdateRequest UpdateRequest { get; }public FileUpdateRequest UpdateRequest { get; }Public ReadOnly Property UpdateRequest As FileUpdateRequestpublic FileUpdateRequest UpdateRequest { get; }
Value
FileUpdateRequest FileUpdateRequest FileUpdateRequest FileUpdateRequest

The FileUpdateRequest object associated with the cached file update.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

UpdateTarget UpdateTarget UpdateTarget UpdateTarget

Gets the CachedFileTarget object associated with cached file update that indicates whether the local or remote file should be updated.

public CachedFileTarget UpdateTarget { get; }public CachedFileTarget UpdateTarget { get; }Public ReadOnly Property UpdateTarget As CachedFileTargetpublic CachedFileTarget UpdateTarget { get; }
Value
CachedFileTarget CachedFileTarget CachedFileTarget CachedFileTarget

The CachedFileTarget object associated with cached file update that indicates whether the local or remote file should be updated.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)