PickerClosingEventArgs PickerClosingEventArgs PickerClosingEventArgs PickerClosingEventArgs PickerClosingEventArgs Class

Definition

Provides information about a closing event.

public : sealed class PickerClosingEventArgs : IPickerClosingEventArgs
struct winrt::Windows::Storage::Pickers::Provider::PickerClosingEventArgs : IPickerClosingEventArgs
public sealed class PickerClosingEventArgs : IPickerClosingEventArgs
Public NotInheritable Class PickerClosingEventArgs Implements IPickerClosingEventArgs
// 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

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 ClosingOperation ClosingOperation ClosingOperation ClosingOperation

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

public : PickerClosingOperation ClosingOperation { get; }
PickerClosingOperation ClosingOperation();
public PickerClosingOperation ClosingOperation { get; }
Public ReadOnly Property ClosingOperation As PickerClosingOperation
var pickerClosingOperation = pickerClosingEventArgs.closingOperation;

IsCanceled IsCanceled IsCanceled IsCanceled IsCanceled

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

public : Platform::Boolean IsCanceled { get; }
bool IsCanceled();
public bool IsCanceled { get; }
Public ReadOnly Property IsCanceled As bool
var bool = pickerClosingEventArgs.isCanceled;
Value
bool bool bool

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