AccountsSettingsPane.AccountCommandsRequested イベント

定義

ユーザーが [アカウント] ウィンドウを開いたときに発生します。 このイベントを処理すると、アプリは accounts コマンドを初期化し、ユーザーがウィンドウを閉じるまで 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) 

イベントの種類

注釈

アプリでこのイベントが処理されたら、指定された AccountsSettingsPaneCommandsRequestedEventArgsSettingsCommand オブジェクト、CredentialCommand オブジェクト、および WebAccountCommand オブジェクトを設定して、AccountsSettingsPaneUI で使用できるようにします。

ペインの変更中にエラーが発生した場合、 Show の呼び出しはサイレントモードで失敗し、ペインは表示されません。

適用対象