AccountsSettingsPane.AccountCommandsRequested 事件

定义

当用户打开帐户窗格时发生。 处理此事件可让应用初始化帐户命令并暂停其 UI,直到用户关闭窗格。

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

事件类型

注解

当应用处理此事件时,使用 SettingsCommand 对象、CredentialCommand 对象和 WebAccountCommand 对象填充提供的 AccountsSettingsPaneCommandsRequestedEventArgs,使其可用于 AccountsSettingsPaneUI。

如果在修改窗格时发生错误,则对 Show 的调用将以无提示方式失败,并且不会显示该窗格。

适用于