Compartir a través de


AudioPlaybackConnection.StateChanged Evento

Definición

Se produce cuando cambia el estado de conexión de AudioPlaybackConnection .

// Register
event_token StateChanged(TypedEventHandler<AudioPlaybackConnection, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
AudioPlaybackConnection::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<AudioPlaybackConnection, IInspectable const&> const& handler) const;
public event TypedEventHandler<AudioPlaybackConnection,object> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
audioPlaybackConnection.addEventListener("statechanged", onStateChanged);
audioPlaybackConnection.removeEventListener("statechanged", onStateChanged);
- or -
audioPlaybackConnection.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of AudioPlaybackConnection, Object) 

Tipo de evento

Comentarios

Compruebe la propiedad State del objeto AudioPlaybackConnection pasado como argumento sender al controlador de eventos para obtener el nuevo estado de conexión.

Se aplica a

Consulte también