Condividi tramite


AccountsSettingsPane.AccountCommandsRequested Evento

Definizione

Si verifica quando l'utente apre il riquadro account. La gestione di questo evento consente all'app di inizializzare i comandi degli account e sospendere l'interfaccia utente fino a quando l'utente chiude il riquadro.

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

Tipo evento

Commenti

Quando l'app gestisce questo evento, popolare gli oggetti AccountSettingsPaneCommandsRequestedEventArgs con gli oggetti SettingsCommand , gli oggetti CredentialCommand e gli oggetti WebAccountCommand per renderli disponibili all'interfaccia utente AccountSettingsPane.

Se si verifica un errore durante la modifica del riquadro, le chiamate a Mostra avranno esito negativo e il riquadro non verrà visualizzato.

Si applica a