共用方式為


WebAccountMonitor.DefaultSignInAccountChanged 事件

定義

當預設登入帳戶變更時引發。

// Register
event_token DefaultSignInAccountChanged(TypedEventHandler<WebAccountMonitor, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
WebAccountMonitor::DefaultSignInAccountChanged_revoker DefaultSignInAccountChanged(auto_revoke_t, TypedEventHandler<WebAccountMonitor, IInspectable const&> const& handler) const;
public event TypedEventHandler<WebAccountMonitor,object> DefaultSignInAccountChanged;
function onDefaultSignInAccountChanged(eventArgs) { /* Your code */ }
webAccountMonitor.addEventListener("defaultsigninaccountchanged", onDefaultSignInAccountChanged);
webAccountMonitor.removeEventListener("defaultsigninaccountchanged", onDefaultSignInAccountChanged);
- or -
webAccountMonitor.ondefaultsigninaccountchanged = onDefaultSignInAccountChanged;
Public Custom Event DefaultSignInAccountChanged As TypedEventHandler(Of WebAccountMonitor, Object) 

事件類型

適用於