PickerClosingOperation PickerClosingOperation PickerClosingOperation PickerClosingOperation Class

Definition

Lets an app that provides files get the deadline for responding to a closing event and get a deferral so the app can respond to the event asynchronously.

public : sealed class PickerClosingOperation : IPickerClosingOperation
public sealed class PickerClosingOperation : IPickerClosingOperation
Public NotInheritable Class PickerClosingOperation Implements IPickerClosingOperation
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

If your app participates in the File Open Picker contract, you can use this class to respond to a closing event.

Properties

Deadline Deadline Deadline Deadline

Gets a dateTime object that indicates when the system will shut down the app that is providing files through the file picker without further notice.

public : DateTime Deadline { get; }
public DateTimeOffset Deadline { get; }
Public ReadOnly Property Deadline As DateTimeOffset
var dateTimeOffset = pickerClosingOperation.deadline;
Value
DateTime DateTimeOffset DateTimeOffset DateTimeOffset

The dateTime object that indicates when the system will shut down the app.

Methods

GetDeferral() GetDeferral() GetDeferral() GetDeferral()

Gets a pickerClosingDeferral that the app providing files through the file picker can use to respond asynchronously to a closing event.

public : PickerClosingDeferral GetDeferral()
public PickerClosingDeferral GetDeferral()
Public Function GetDeferral() As PickerClosingDeferral
var pickerClosingDeferral = pickerClosingOperation.getDeferral();
Returns

The pickerClosingDeferral that the app providing files through the file picker can use to respond asynchronously to a closing event.

Remarks

Use this method to finish responding to a closing event asynchronously.