次の方法で共有


AppBroadcastBackgroundServiceSignInInfo.UserNameChanged イベント

定義

UserName プロパティが変更されたときに発生します。

// Register
event_token UserNameChanged(TypedEventHandler<AppBroadcastBackgroundServiceSignInInfo, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
AppBroadcastBackgroundServiceSignInInfo::UserNameChanged_revoker UserNameChanged(auto_revoke_t, TypedEventHandler<AppBroadcastBackgroundServiceSignInInfo, IInspectable const&> const& handler) const;
public event TypedEventHandler<AppBroadcastBackgroundServiceSignInInfo,object> UserNameChanged;
function onUserNameChanged(eventArgs) { /* Your code */ }
appBroadcastBackgroundServiceSignInInfo.addEventListener("usernamechanged", onUserNameChanged);
appBroadcastBackgroundServiceSignInInfo.removeEventListener("usernamechanged", onUserNameChanged);
- or -
appBroadcastBackgroundServiceSignInInfo.onusernamechanged = onUserNameChanged;
Public Custom Event UserNameChanged As TypedEventHandler(Of AppBroadcastBackgroundServiceSignInInfo, Object) 

イベントの種類

Windows の要件

デバイス ファミリ
Windows Desktop Extension SDK (10.0.16299.0 で導入)
API contract
Windows.Media.Capture.AppBroadcastContract (v2.0 で導入)

適用対象