Compartilhar via


XboxLiveEndpointPair.StateChanged Evento

Definição

Evento gerado quando o estado do XboxLiveEndpointPair é alterado.

Importante

Essa API não está disponível para todos os aplicativos. A menos que sua conta de desenvolvedor seja provisionada especialmente pela Microsoft, as chamadas para essas APIs falharão em runtime.

// Register
event_token StateChanged(TypedEventHandler<XboxLiveEndpointPair, XboxLiveEndpointPairStateChangedEventArgs const&> const& handler) const;

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

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

Tipo de evento

Aplica-se a