UpdateTarget | updateTarget property

CachedFileUpdaterUI.UpdateTarget | updateTarget property

Gets a value that indicates which version of the file needs to be updated: the local version or the version in the app's repository.

Syntax


public CachedFileTarget UpdateTarget { get; }

Property value

Type: CachedFileTarget

An enum value that indicates which version of the file needs to be updated: the local version or the version in the app's repository.

Remarks

If your app participates in the Cached File Updater contract, you should use this property to respond to FileUpdateRequested events. If this property is CachedFileTarget.Local, your app should update the locally cached copy of the file to match the latest version of the file that is in your app's repository. Otherwise, if it's CachedFileTarget.Remote, your app should update the version of the file that is in your app's repository to match the latest, locally cached copy of the file.

The value of this property is applies to all of the FileUpdateRequested events that fire for a single ActivationKind.CachedFileUpdater activation event.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Storage.Provider
Windows::Storage::Provider [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Storage.Provider
Windows::Storage::Provider [C++]

Metadata

Windows.winmd

See also

CachedFileUpdaterUI

 

 

Show:
© 2016 Microsoft