PickerClosingEventArgs PickerClosingEventArgs PickerClosingEventArgs PickerClosingEventArgs Class

Provides information about a Closing event.

Syntax

Declaration

public sealed class PickerClosingEventArgspublic sealed class PickerClosingEventArgsPublic NotInheritable Class PickerClosingEventArgs

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 summary

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

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

Properties

  • ClosingOperation
    ClosingOperation
    ClosingOperation
    ClosingOperation

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

    public PickerClosingOperation ClosingOperation { get; }public PickerClosingOperation ClosingOperation { get; }Public ReadOnly Property ClosingOperation As PickerClosingOperation

    Property Value

  • IsCanceled
    IsCanceled
    IsCanceled
    IsCanceled

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

    public bool IsCanceled { get; }public bool IsCanceled { get; }Public ReadOnly Property IsCanceled As bool

    Property Value

    • bool
      bool
      bool
      bool

      True if the file picker was cancelled by the user. Otherwise, false.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Storage.Pickers.Provider.dll