Dela via


FileOpenPickerUI.FileRemoved Event

Definition

Note

The FileRemoved event is deprecated and should not be used.

Fires when the user removes a file from the list of files that the user has chosen if that file was added by the app that is providing files.

// Register
event_token FileRemoved(TypedEventHandler<FileOpenPickerUI, FileRemovedEventArgs const&> const& handler) const;

// Revoke with event_token
void FileRemoved(event_token const* cookie) const;

// Revoke with event_revoker
FileOpenPickerUI::FileRemoved_revoker FileRemoved(auto_revoke_t, TypedEventHandler<FileOpenPickerUI, FileRemovedEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("Since Windows 10, only apps can remove files, not end users so the FileRemoved event will not be raised.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("Since Windows 10, only apps can remove files, not end users so the FileRemoved event will not be raised.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
// Register
event_token FileRemoved(TypedEventHandler<FileOpenPickerUI, FileRemovedEventArgs const&> const& handler) const;

// Revoke with event_token
void FileRemoved(event_token const* cookie) const;

// Revoke with event_revoker
FileOpenPickerUI::FileRemoved_revoker FileRemoved(auto_revoke_t, TypedEventHandler<FileOpenPickerUI, FileRemovedEventArgs const&> const& handler) const;
public event TypedEventHandler<FileOpenPickerUI,FileRemovedEventArgs> FileRemoved;
[add: Windows.Foundation.Metadata.Deprecated("Since Windows 10, only apps can remove files, not end users so the FileRemoved event will not be raised.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("Since Windows 10, only apps can remove files, not end users so the FileRemoved event will not be raised.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<FileOpenPickerUI,FileRemovedEventArgs> FileRemoved;
function onFileRemoved(eventArgs) { /* Your code */ }
fileOpenPickerUI.addEventListener("fileremoved", onFileRemoved);
fileOpenPickerUI.removeEventListener("fileremoved", onFileRemoved);
- or -
fileOpenPickerUI.onfileremoved = onFileRemoved;
Public Custom Event FileRemoved As TypedEventHandler(Of FileOpenPickerUI, FileRemovedEventArgs) 

Event Type

Attributes

Remarks

If your app participates in the File Open Picker contract and your app uses the app page that is hosted in the file picker to visually indicate which items the user selects, you should respond to this event. When a FileRemoved event fires you should update your app's file picker page to reflect the change. Learn more about responding to this event in FileRemovedEventArgs.

Applies to

See also