FileUpdateRequestedEventArgs Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides information about a FileUpdateRequested event.
public ref class FileUpdateRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class FileUpdateRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class FileUpdateRequestedEventArgs
Public NotInheritable Class FileUpdateRequestedEventArgs
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Examples
The File picker contracts sample demonstrates how to respond to a FileUpdateRequested event.
// Event handler
void CachedFileUpdaterUI_FileUpdateRequested(CachedFileUpdaterUI sender, FileUpdateRequestedEventArgs args)
{
fileUpdateRequest = args.Request;
fileUpdateRequestDeferral = fileUpdateRequest.GetDeferral();
switch (cachedFileUpdaterUI.UIStatus)
{
case UIStatus.Hidden:
fileUpdateRequest.Status = FileUpdateStatus.UserInputNeeded;
fileUpdateRequestDeferral.Complete();
break;
case UIStatus.Visible:
break;
case UIStatus.Unavailable:
fileUpdateRequest.Status = FileUpdateStatus.Failed;
fileUpdateRequestDeferral.Complete();
break;
}
}
// Register for the event
cachedFileUpdaterUI.FileUpdateRequested += CachedFileUpdaterUI_FileUpdateRequested;
args
contains a FileUpdateRequestedEventArgs object.
Remarks
If your app participates in the Cached File Updater contract, a FileUpdateRequestedEventArgs is passed to your app's FileUpdateRequested event handler when the event fires. Use the FileUpdateRequestedEventArgs.Request property to get details about the requested update.
Properties
Request |
Gets the details of the requested file update. |