Share via


PickerClosingEventArgs Class

Definition

Provides information about a Closing event.

public ref class PickerClosingEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class PickerClosingEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class PickerClosingEventArgs
Public NotInheritable Class PickerClosingEventArgs
Inheritance
Object Platform::Object IInspectable PickerClosingEventArgs
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)

Remarks

This object is passed to the event handler for Closing events.

If your app participates in the File Open Picker contract and a Closing event fires, your app should respond by performing cleanup tasks before your app is closed. For example, if the user cancels the file picker, you could respond to this event by cleaning up temporary files that were added to the file picker when the user chose them.

Properties

ClosingOperation

Gets a pickerClosingOperation object that is used to respond to a Closing event.

IsCanceled

Gets a value that indicates whether the file picker is closing because the user cancelled it.

Applies to