Bagikan melalui


FileOpenPickerUI.FileRemoved Kejadian

Definisi

Catatan

Peristiwa FileRemoved tidak digunakan lagi dan tidak boleh digunakan.

Diaktifkan saat pengguna menghapus file dari daftar file yang telah dipilih pengguna jika file tersebut ditambahkan oleh aplikasi yang menyediakan file.

// 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) 

Jenis Acara

Atribut

Keterangan

Jika aplikasi Anda berpartisipasi dalam kontrak File Open Picker dan aplikasi Anda menggunakan halaman aplikasi yang dihosting di pemilih file untuk secara visual menunjukkan item mana yang dipilih pengguna, Anda harus menanggapi peristiwa ini. Saat peristiwa FileRemoved diaktifkan, Anda harus memperbarui halaman pemilih file aplikasi untuk mencerminkan perubahan. Pelajari selengkapnya tentang menanggapi peristiwa ini di FileRemovedEventArgs.

Berlaku untuk

Lihat juga