Share via


CachedFileUpdaterUI.UpdateTarget Property

Definition

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.

public:
 property CachedFileTarget UpdateTarget { CachedFileTarget get(); };
CachedFileTarget UpdateTarget();
public CachedFileTarget UpdateTarget { get; }
var cachedFileTarget = cachedFileUpdaterUI.updateTarget;
Public ReadOnly Property UpdateTarget As CachedFileTarget

Property Value

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.

Applies to