Compartilhar via


AppBroadcastBackgroundServiceSignInInfo.UserNameChanged Evento

Definição

Ocorre quando a propriedade UserName é alterada.

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

Tipo de evento

Requisitos do Windows

Família de dispositivos
Windows Desktop Extension SDK (introduzida na 10.0.16299.0)
API contract
Windows.Media.Capture.AppBroadcastContract (introduzida na v2.0)

Aplica-se a