Compartir a través de


AllJoynBusAttachment.StateChanged Evento

Definición

Importante

Los tipos del espacio de nombres Windows.Devices.AllJoyn están en desuso y es posible que no estén disponibles en versiones futuras de Windows. AllJoyn, patrocinado por AllSeen Alliance, fue un protocolo de comunicación y detección de código abierto para escenarios de Internet de las cosas (IoT), como encender y apagar las luces, y las temperaturas de lectura. Para conocer alternativas, como IoTivity Lite e IoTivity, consulte el sitio web de iotivity.org .

Se produce cuando cambia el estado de los datos adjuntos del bus. La enumeración AllJoynBusAttachmentState define los valores de estado posibles.

// Register
event_token StateChanged(TypedEventHandler<AllJoynBusAttachment, AllJoynBusAttachmentStateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynBusAttachmentStateChangedEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
// Register
event_token StateChanged(TypedEventHandler<AllJoynBusAttachment, AllJoynBusAttachmentStateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AllJoynBusAttachment::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<AllJoynBusAttachment, AllJoynBusAttachmentStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<AllJoynBusAttachment,AllJoynBusAttachmentStateChangedEventArgs> StateChanged;
[add: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<AllJoynBusAttachment,AllJoynBusAttachmentStateChangedEventArgs> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
allJoynBusAttachment.addEventListener("statechanged", onStateChanged);
allJoynBusAttachment.removeEventListener("statechanged", onStateChanged);
- or -
allJoynBusAttachment.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of AllJoynBusAttachment, AllJoynBusAttachmentStateChangedEventArgs) 

Tipo de evento

Atributos

Requisitos de Windows

Características de aplicaciones
allJoyn

Se aplica a