CachedFileUpdaterUI.UpdateTarget CachedFileUpdaterUI.UpdateTarget CachedFileUpdaterUI.UpdateTarget CachedFileUpdaterUI.UpdateTarget 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 : CachedFileTarget UpdateTarget { get; }
CachedFileTarget UpdateTarget();
public CachedFileTarget UpdateTarget { get; }
Public ReadOnly Property UpdateTarget As CachedFileTarget
var cachedFileTarget = cachedFileUpdaterUI.updateTarget;

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.