Bagikan melalui


AccountsSettingsPane.AccountCommandsRequested Kejadian

Definisi

Terjadi saat pengguna membuka panel akun. Menangani peristiwa ini memungkinkan aplikasi menginisialisasi perintah akun dan menjeda UI-nya hingga pengguna menutup panel.

// Register
event_token AccountCommandsRequested(TypedEventHandler<AccountsSettingsPane, AccountsSettingsPaneCommandsRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AccountsSettingsPane::AccountCommandsRequested_revoker AccountCommandsRequested(auto_revoke_t, TypedEventHandler<AccountsSettingsPane, AccountsSettingsPaneCommandsRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<AccountsSettingsPane,AccountsSettingsPaneCommandsRequestedEventArgs> AccountCommandsRequested;
function onAccountCommandsRequested(eventArgs) { /* Your code */ }
accountsSettingsPane.addEventListener("accountcommandsrequested", onAccountCommandsRequested);
accountsSettingsPane.removeEventListener("accountcommandsrequested", onAccountCommandsRequested);
- or -
accountsSettingsPane.onaccountcommandsrequested = onAccountCommandsRequested;
Public Custom Event AccountCommandsRequested As TypedEventHandler(Of AccountsSettingsPane, AccountsSettingsPaneCommandsRequestedEventArgs) 

Jenis Acara

Keterangan

Saat aplikasi Anda menangani peristiwa ini, isi AccountsSettingsPaneCommandsRequestedEventArgs dengan objek SettingsCommand Anda, objek CredentialCommand Anda, dan objek WebAccountCommand Anda untuk membuatnya tersedia untuk UI AccountsSettingsPane.

Jika terjadi kesalahan saat memodifikasi panel, panggilan ke Perlihatkan akan gagal diam-diam dan panel tidak akan muncul.

Berlaku untuk